Hi,
I have a page that has two RadGrids and I want to do a batch update to both grids. Because there are two grids, having a update commanditem doesn't seem appropriate.
On the button click I call the following procedure:
| For Each Item As GridEditableItem In RadGrid1.EditItems |
| ObjectDataSource1.UpdateParameters.Item("Field1").DefaultValue = Item("Field1").Text |
| ObjectDataSource1.UpdateParameters.Item("Field2").DefaultValue = Item("Field2").Text |
| ObjectDataSource1.UpdateParameters.Item("Field3").DefaultValue = Item("Field3").Text |
| ObjectDataSource1.UpdateParameters.Item("Field4").DefaultValue = Item("Field4").Text |
| ObjectDataSource1.UpdateParameters.Item("Field5").DefaultValue = Item("Field5").Text |
| ObjectDataSource1.UpdateParameters.Item("Field6").DefaultValue = Item("Field6").Text |
| ObjectDataSource1.Update() |
| Next |
The solution seems fairly simple, but it appears I'm missing something. Any help would be appreciated.
JM