Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
XamPivotGrid with FlatDataSource - how row related data can be accessed
posted

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