Hello,
I have a grid which has two grouped columns. They are year and month, so for example i have the year 2016 grouped, then under it "Jan" also grouped and under "Jan" I have a lot of records .
Now I can filter, and the filter works alright, but after the filter is completed, I expand all the groups again with this code :
for (int i = 0; i < dtg.Splits[0].Rows.Count; i++)
{
if (dtg.Splits[0].Rows[i].RowType != C1.Win.C1TrueDBGrid.RowTypeEnum.DataRow)
{
dtg.ExpandGroupRow(i);
}
}
however, If the filtered record is not in the first group, the group is not expanded, I can put it this way :
Year 2016
Month : Jan
Records...
Month : Feb
Records...
If my filtered value is in Feb, the "Feb" group is not expanded, but if its in "Jan" then the "Jan" group is expanded.
What am I doing wrong ? I am using the latest version which is 20162.188 .