there a way to programmatically set a group by to a hidden column on a XamGrid?
For example, I have the following columns (with values)
Name, School, Grade , Subjects
School is hidden column.
Is there a way to group by School?
Thanks,
Erika
Also, is there a way to activate 'Group By' without setting the allowgroupby area? User should not be able to set the group by conditions but I would need to do it programmatically upon loading of the grid.
Hello ErikaB,
You can programmatically group by a hidden column by adding the target column to GroupByColumns collection.
private void xamGrid1_Loaded(object sender, RoutedEventArgs e) { Column col1 = this.xamGrid1.Columns.DataColumns["School"]; this.xamGrid1.GroupBySettings.GroupByColumns.Add(col1); }
GroupByhttp://help.infragistics.com/Doc/silverlight/2016.1/CLR4.0/?page=xamGrid_GroupBy.html
If you want to hide group by area for end users, you can set AllowGroupByArea property to "Hidden", which is by default. Please refer to the attached sample.
If you have any question with this, please let me know.
Best regards,Yuki MitaDeveloper Support EngineerInfragistics Inc.www.infragistics.com/support