Hi
According to -->
http://help.infragistics.com/Help/NetAdvantage/WPF/2010.1/CLR3.5/html/Infragistics3.Wpf.DataPresenter.v10.1~Infragistics.Windows.DataPresenter.FieldSortDescription~IsGroupBy.html
I've a grid which has a groupby field set .
But the groups are closed. How can I set that all gorups are opend automatically when the data is added to the grid ?
Hi that is what i looked for. i*ll give it a try :-)
btw is there an event i can use when a new record is added to the bound datasource?
I bound t he datagrid to an observeable collection. If theres an event which triggers when i add the item to the collection it would be perfect.
I tried the RecordAdded - Event but it isn't triggered.
Hi,
if you want to expand for example the groupBy record with index 3, you can do the following:
foreach (Record rec in xamDataGrid.Records) { if (rec.RecordType == RecordType.GroupByField || rec.RecordType == RecordType.GroupByFieldLayout) { GroupByRecord groupRecord = (GroupByRecord)rec; if (groupRecord.Index == 3) groupRecord.IsExpanded = true; } }
ok thanks
is there a way to achieve this via xaml ?
and second question: how can i expand an specific groupbyheader ?
Ok, then try this in code-behind:
this.xamDataGrid.Records.ExpandAll(true);
Regards
I don't want the GroupbyArea getting expended. I want the generated groups (at least some of them ) itself expanded.