Hi, is it possible when i display the webdatagrid all rows selected by default.so i can get them all through
WebDataGrid1.Behaviors.Selection.SelectedRowsin an command event
Hi martin2004,
The only way to do this would be to select them one by one (Add to SelectedRows). There is no 'Select All' method on the client or server. Furthermore, if you have paging or virtual scrolling, you'll only be able to select the rows in the current view.
regards,David Young
Hi David, did you have an codesample. i want select them codebehind after bind it to the datatable
Hello Martin,
I am just checking to see if you have any further questions regarding this matter.
Here you go.
foreach (GridRecord row in this.wdgUserTrainingGrid.Rows)
this.wdgUserTrainingGrid.Behaviors.Selection.SelectedRows.Add(row);
-Dave