ADAdministrator Syncfusion Team July 21, 2004 09:28 AM
you can handle the GroupExpanding event and cancel the operation there as shown in code below
this.groupingGrid1.GroupExpanding += new GroupEventHandler(groupingGrid1_GroupExpanding);
private void groupingGrid1_GroupExpanding(object sender, GroupEventArgs e)
// work around for now:
throw new Exception();
// in future:
// e.Cancel = true;
I noticed that with the current version the e.Cancel property is not checked. That''s why you have to throw an exception.
In future builds you will be able to simple set e.Cancel = true. I added support for checking this property in the grid.grouping source code.