I'm trying to update a cell in code, but get this error:
DataTable internal index is corrupted: '13'.
My code to perform the update is:
RadGridView1.Rows(rowNum).Cells(cellNum).Value = "12"
What could be going on here? Stack trace below:
System.InvalidOperationException was unhandled
Message="DataTable internal index is corrupted: '13'."
Source="System.Data"
StackTrace:
at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) at System.Data.RBTree`1.get_Item(Int32 index) at System.Data.DataView.GetRecord(Int32 recordIndex) at System.Data.DataView.GetRow(Int32 index) at System.Data.DataView.get_Item(Int32 recordIndex) at Telerik.WinControls.Data.DataAccessComponent.FindRow(GridViewRowInfo rowInfo) at Telerik.WinControls.Data.DataAccessComponent.set_Item(GridViewRowInfo row, GridViewDataColumn column, Object value) at Telerik.WinControls.UI.GridViewTemplate.set_Item(GridViewRowInfo row, GridViewDataColumn column, Object value) at Telerik.WinControls.UI.GridViewCellInfo.set_Value(Object value) at ...
DataTable internal index is corrupted: '13'.
My code to perform the update is:
RadGridView1.Rows(rowNum).Cells(cellNum).Value = "12"
What could be going on here? Stack trace below:
System.InvalidOperationException was unhandled
Message="DataTable internal index is corrupted: '13'."
Source="System.Data"
StackTrace:
at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) at System.Data.RBTree`1.get_Item(Int32 index) at System.Data.DataView.GetRecord(Int32 recordIndex) at System.Data.DataView.GetRow(Int32 index) at System.Data.DataView.get_Item(Int32 recordIndex) at Telerik.WinControls.Data.DataAccessComponent.FindRow(GridViewRowInfo rowInfo) at Telerik.WinControls.Data.DataAccessComponent.set_Item(GridViewRowInfo row, GridViewDataColumn column, Object value) at Telerik.WinControls.UI.GridViewTemplate.set_Item(GridViewRowInfo row, GridViewDataColumn column, Object value) at Telerik.WinControls.UI.GridViewCellInfo.set_Value(Object value) at ...