How do I modify a cell in datagrid without selecting it?

Oct 12, 2010 at 6:04 AM

I am using WPFToolkit version 3.5.40128.1 with Visual Studio 2008. I know how to read and write to a cell using DataRowView with SelectedValue like:

 

DataRowView prop = (DataRowView)mydatagrid.SelectedValue;

I need to read and change values without selecting a row though. I would like the currently selected row to remain selected, but modify data in another row.

How would you go about doing this?

Thanks,

George

Oct 24, 2010 at 5:55 PM

Never mind. I figured it out. I needed to create a DataRow object and make the changes to it.