I simply want to have my groupby headers expanded by default to show all their child rows. How do I do this in XAML? Tried searching for this but cant seem to find it anywhere.
Hi,
We currently don't offer that option.
You'd have to do this in the code behind.
-SteveZ
What is the best way to do this in code? I have tried the following:
private void AllergyGrid_InitializeRow(object sender, Infragistics.Controls.Grids.InitializeRowEventArgs e) { if (e.Row != null) { if (e.Row.RowType == Infragistics.Controls.Grids.RowType.GroupByRow) { e.Row.IsExpanded = true; } } } private void AllergyGrid_Loaded(object sender, RoutedEventArgs e) { foreach (Infragistics.Controls.Grids.Row row in ((Infragistics.Controls.Grids.XamGrid)sender).Rows) { if (row.RowType == Infragistics.Controls.Grids.RowType.GroupByRow) { row.IsExpanded = true; } } }
Neither is working.