These both appear to be about grouping rows? I have Columns grouped using the "Property Builder" tool on the radgridview. For example, I have:
GROUP 1 - Columns 1, 2, 3
GROUP 2 - Columns 4, 5, 6, 7
GROUP 3 - Columns 8, 9, 10
If I hide group 2, the export still exports columns 4, 5, 6 and 7. If I hide the cells through (not the group), they do not export.
I've tried this before the export:
If Me.grid.Columns("GROUP1").IsVisible = False Then
Me.grid.Columns("Column4").IsVisible = False
Me.grid.Columns("Column5").IsVisible = False
Me.grid.Columns("Column6").IsVisible = False
Me.grid.Columns("Column7").IsVisible = False
However it throws an error of "NullReferenceException was unhandled. Object reference not set to an instance of an object". I think this may be as GROUP1 isn't a column and therefore I can't check if it is visible or not.
So basically, I need to know how to check if a group of columns is visible or not?