I am looking to modify a DataRowView value from an event.
I have tried the following but it never changes the DataGridCheckBoxColumn
((DataRowView)repDataGrid.SelectedItem).Row.ItemArray[4] = true;
I am looking to modify a DataRowView value from an event.
I have tried the following but it never changes the DataGridCheckBoxColumn
((DataRowView)repDataGrid.SelectedItem).Row.ItemArray[4] = true;
Copyright © 2021 Jogjafile Inc.
ItemArraycreates a newobject[]which can be used to read the values. But you can't use it to set them. You can use theDataRowindexer:If you wanted to use
ItemArrayto assign the values you have to re-assign it: