Me.WebDataGrid1.Behaviors.RowSelectors.RowSelectorClientEvents.HeaderRowSelectorClicked = "WDG1_HeaderRowSelectorClicked"
this.WebDataGrid1.Behaviors.RowSelectors.RowSelectorClientEvents.HeaderRowSelectorClicked = "WDG1_HeaderRowSelectorClicked";
// The client event HeaderRowSelectorClicked takes two parameters sender and e // sender is the object which is raising the event // e is the MarginRowSelectorClickedEventArgs function WDG1_HeaderRowSelectorClicked(sender, e) { //Returns the row selector element that was clicked var s = e.get_rowSelectorElement(); }