I have a universal usercontrol that has by default in xaml the groupby turned on.
If I want to turn it off dynamically how do I do this in the C# code?
Thanks ahead of time
Jack
Hi Jack,
You may set the GroupByAreaLocation of your XamDataPresenter to "None". This will hide the GroupByArea.
Hope this helps.
Thanks for the quick response.
I want to have a standard usercontrol that enables this feature, hence in the xaml code I enable it.
I want the capability of the user of this control to disable it. Hence, I need a solution that works in the cs code file. I tried the following code, which has correct syntax, but the semantics must be messed up as it does not do anything.
xamDataGrid1.GroupByArea.IsEnabled = false;
I can not in code simple set the GroupByArea to None.
Any more help?