I have my columns in my grid categorized into groups. There is a nice little plus or minus button that I can click on that expands or collapses the group. Is there a property on the grid's group header that tells me whether the group is currently expanded or collapsed?
Hi,
I assume you are referring to OutlookGroupBy functionality in the grid, which allows you to group the rows, as opposed to column groups.
So the "group header" you refer to here is a GroupByRow. So to determine the expanded state of any row, whether it's a normal data row or a GroupByRow, you can check the row's Expanded property.
I am referring to the grouping of columns, not rows. I looked at my code and I am using the MouseDown event of the grid to see if the user clicked on the column header's image. I am using a plus or minus image to represent collapsed or expanded. I then loop through the columns and hide or show them. I didn't remember writing this code. I thought it was standard behavior in the grid. Sorry to ask about this without checking my code first.