Hi, I have a xamDataGrid which I set the DataSource as a list of DataView:
List source= ... m_grdResult.DataSource = source
xamDataGrid correctly groups by the DataView for me but how do I set xamDataGrid to automatically expand all those group by items? I tried setting IsGroupByAreaExpanded=true but it doesn't work.
Anyone has any ideas?
thank you so much, it works!
Thanks for posting the answer when you found it, been racking my brain and searching for a while for how to do this. Worked great!
That works great! Thank you.
Right. I just found the answer. I need to hook into the InitializeRecord event and do something in this vein:
void m_grdBlotter_InitializeRecord(object sender, Infragistics.Windows.DataPresenter.Events.InitializeRecordEventArgs e)
{
if (e.Record.NestingDepth == 0)
e.Record.IsExpanded = true;
}