Hi, I'm checking the XamPivotGrid and I need the ability to get the associated with the selected row data object:
In sample: FlatDataSourceCB.xaml I added selection by rows and hanling for SelectedRowsCollectionChanged event:
<ig:XamPivotGrid.SelectionSettings> <ig:PivotSelectionSettings AllowColumnHeaderSelection="False" AllowRowHeaderSelection ="True" CellSelectionAction ="SelectRow" ColumnSelection ="None" RowSelection ="Multiple" /> </ig:XamPivotGrid.SelectionSettings></ig:XamPivotGrid>
private void pivotGrid_SelectedRowsCollectionChanged(object sender, PivotSelectionCollectionChangedEventArgs<PivotSelectedRowsCollection> e){ foreach (PivotDataRow r in e.NewSelectedItems) //get the sale associated with selected row }
Hi
If you want to get underlaying data you can look at this post https://es.infragistics.com/community/forums/f/ultimate-ui-for-wpf/56647/possible-to-get-underlying-objects-from-cell-in-xampivotgrid
Otherwise row has Cells collection which gives you access to data in cells.
RegardsTodor
Thanks, It was very helpfull