Hi,
I want to have the a RadGridView with group rows, where the group rows start out expanded, and cannot be collapsed. The way I am currently doing this is with the following:
I observe that e.Row.IsExpanded is true when the row is changing to be expanded. The documentation says that this event "Occurs when a group row's expanded state is about to be changed." Is the state of e.Row correct / Is it supposed to show the state of that the row WILL be in after the change? I'm fine with it as it is now... but if it is supposed to be the current state of the row (before the change), I want to know so I can watch the change logs so my code works the way I want to after updates.
I want to have the a RadGridView with group rows, where the group rows start out expanded, and cannot be collapsed. The way I am currently doing this is with the following:
private
void
_mainGrid_GroupRowIsExpandedChanging(
object
sender, GroupRowCancelEventArgs e)
{
if
(!e.Row.IsExpanded)
{
e.Cancel =
true
;
}
}
I observe that e.Row.IsExpanded is true when the row is changing to be expanded. The documentation says that this event "Occurs when a group row's expanded state is about to be changed." Is the state of e.Row correct / Is it supposed to show the state of that the row WILL be in after the change? I'm fine with it as it is now... but if it is supposed to be the current state of the row (before the change), I want to know so I can watch the change logs so my code works the way I want to after updates.