i have a grid with group by column, is there any way i can expand all the rows while on page load itself.
regards,Peter
Its Working Thank you.
If you're setting your ItemsSource before the xamGrid is loaded, you can use the Loaded event.
Or you can use the GroupByCollectionChagned event.
Then just loop through the xamGrid's Row's collection.
foreach(Row row in grid.Rows)
{
GroupByRow gbr = row as GroupByRow;
if(gbr != nul)
gpr.IsExpanded = true;
}
-SteveZ
Any sample code in which event i need to write
Hi Peter,
You'll need to loop through each row and set it's IsExpanded property to true. We don't offer a feature to autoexpand all groupby rows automatically.