PDA

View Full Version : Clear selections in checkbox selection model



Birgit
May 29, 2012, 1:28 PM
Can you please post the correct way to clear selections in a checkbox selection model.

I use a one-to-many grid.
1) I select a master record
2) I select (check) some records in my detail gridpanel
3) I select another master record and clears all selections of the detail gridpanel
4) I select the first master record again and appaerantly the previously selected records are selected again...

I'm using paging and remote loading of data.



CType(Me.GridPanelCustomerUsers.SelectionModel.Pri mary, CheckboxSelectionModel).SelectedRows.Clear()
Me.StoreCustomerUsers.DataSource = _Data
Me.StoreCustomerUsers.DataBind()