I have a RadGrid with dynamically populated rows that updates frequently using Rebind, NeedDataSource, and a DataTable. This functions very well, until I try to select rows in my grid. The short explanation is that every time the DataSource on the RadGrid changes, selected rows are reset and do not persist. I've been ripping my hair out trying to get around this, but I've had no success. Here are some scenarios I've tried.
-Rebind, NeedDataSource, new DataTable - Selected rows do not persist
-Rebind, NeedDataSource, modify an existing DataTable - Selected rows do not persist
-Remove Rebind and NeedDataSource, manually modify an existing DataTable - Grid does not update
-Remove Rebind and NeedDataSource, manually modify an existing DataTable, set DataSource and call DataBind - Selected rows do not persist
-Rebind, NeedDataSource, manually track row selections and set the GridDataItem.Selected property after setting the DataSource - Selected rows do not persist
So the conclusions I've come to is that selected rows are reset whenever the DataSource property is changed, a RadGrid will not update unless the DataSource property is changed, and the GridDataItem.Selected set property does not do what I would expect it to do.
Is there any way to accomplish this, or am I completely out of luck? Thanks!
-Rebind, NeedDataSource, new DataTable - Selected rows do not persist
-Rebind, NeedDataSource, modify an existing DataTable - Selected rows do not persist
-Remove Rebind and NeedDataSource, manually modify an existing DataTable - Grid does not update
-Remove Rebind and NeedDataSource, manually modify an existing DataTable, set DataSource and call DataBind - Selected rows do not persist
-Rebind, NeedDataSource, manually track row selections and set the GridDataItem.Selected property after setting the DataSource - Selected rows do not persist
So the conclusions I've come to is that selected rows are reset whenever the DataSource property is changed, a RadGrid will not update unless the DataSource property is changed, and the GridDataItem.Selected set property does not do what I would expect it to do.
Is there any way to accomplish this, or am I completely out of luck? Thanks!