Hi,
I have a XamDataGrid with grouping enabled. When I group by some column I get my rows nicely grouped. Now the user should be able to select one of the grouped rows and perform an action in all the items that are grouped under that row. I cant find the way to be able to select a grouped row, can someone help me with this?
Thanks,
Fede
Hi Alex,
Thanks for your answer I am going to test it and mark the question as verified.
I will write another post regarding how to create a style so the user can see that it is actually selecting a group row.
Hello Fede,
The GroupByRecord is activated, however there is no visual indication for that. You can use the following code to select the child records of a GroupByRecord when it is cliecked on (activated)
private void xamDataGrid1_RecordActivating(object sender, Infragistics.Windows.DataPresenter.Events.RecordActivatingEventArgs e)
{
if (e.Record is GroupByRecord)
e.Cancel = true;
GroupByRecord gr = e.Record as GroupByRecord;
gr.IsExpanded = true;
xamDataGrid1.SelectedItems.Records.Clear();
xamDataGrid1.SelectedItems.Records.AddRange(gr.ChildRecords.ToArray<Record>());
}