adding a checkbox to Webgrid's groupping row

5 replies. Last post: March 13, 2014 11:19 PM by Bernard Xiang
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
roi ukashiMember

Hi, 


Is it possible to add a checkbox to a webgrid's groupping row so it would be possible to 

check/uncheck all rows (RowChecker) in the groupped section?


<ISWebGrid:WebGridColumn AllowGrouping="No" AllowSizing="No" AllowSorting="No" DataMember="COL" ColumnType="CheckBox" IsRowChecker="True" Name="RowChecker" ShowInSelectColumns="No" Width="30px"></ISWebGrid:WebGridColumn>          

<ISWebGrid:WebGridColumn Caption="GROUP_COL" Name="GROUP_COL" DataMember="GROUP_COL"></ISWebGrid:WebGridColumn>                                                  

PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)

WebGridGroup wg_column = new WebGridGroup();

wg_column.Column = columns.GetNamedItem("GROUP_COL");            

grid.RootTable.GroupedColumns.Add(wg_column);   


Thanks       

All times are GMT -5. The time now is 1:41 PM.
Previous Next