I'm facing a problem while updating the DataTable. The SelectedRows list references the old objects when updating the DataTable using BeginUpdate and EndUpdate.
code snippet is as follows:
Upon execution of the above code, the SelectedRows should ideally be cleared. However, they are still having objects in the List.
I'm not facing this issue when BeginUpdate() and EndUpdate() function is not used.
I'm using Q1 2010 SP2.
I understand that this is a old version and it might have got resolved in latest versions, however, I'm not in a state to upgrade. Please suggest me some workaround for this.
code snippet is as follows:
gridView.GridElement.BeginUpdate();
DataTable dt = gridView.DataSource as DataTable;
dt.Clear();
// Loops a list and add DataRows with dt.NewRow() function
gridView.GridElement.EndUpdate();
Upon execution of the above code, the SelectedRows should ideally be cleared. However, they are still having objects in the List.
I'm not facing this issue when BeginUpdate() and EndUpdate() function is not used.
I'm using Q1 2010 SP2.
I understand that this is a old version and it might have got resolved in latest versions, however, I'm not in a state to upgrade. Please suggest me some workaround for this.