ezep
  • ezep
  • Newbie Topic Starter
2016-10-27T22:25:40Z
I have a iGrid that gets populated with data from a database and then it is grouped by column 0.
i also have two custom scrollbuttons added per the demo. as follows

fNationGrid.VScrollBar.Visibility = iGScrollBarVisibility.Always;
fNationGrid.VScrollBar.CustomButtons.Add(iGScrollBarCustomButtonAlign.Far, iGActions.CollapseAll, "Collapse All");
fNationGrid.VScrollBar.CustomButtons.Add(iGScrollBarCustomButtonAlign.Far, iGActions.ExpandAll, "Expand All");

Now what i want to do is after the above statements in the form load and after the data load to have the Igrid start in collapsed mode
by group column 0


thanks in advance
Igor/10Tec
2016-10-29T07:56:07Z
It should be something like this:

//Set the default group row state
iGrid1.DefaultAutoGroupRow.Expanded = false;

//Add the column to the group object
iGrid1.GroupObject.Add(0);

//Perform actual grouping
iGrid1.Group();