GetRawItem in WPF Pivot Grid
23 Oct 2019 / 1 minute to read
GetRawItemFor method is used to obtain the list of raw items for value cell, total cell, or grand total cell in the pivot grid.
To achieve this, define the pivot grid control and enable the hyperlink option of the value and summary cells using the IsHyperlinkCell
property. Then, invoke the hyperlink cell click event and call the GetRawItemFor
method as illustrated in the following code snippet.
public partial class MainWindow: Window {
public MainWindow() {
InitializeComponent();
pivotGrid.ValueCellStyle.IsHyperlinkCell = true;
pivotGrid.SummaryCellStyle.IsHyperlinkCell = true;
pivotGrid.HyperlinkCellClick += pivotGrid_HyperlinkCellClick;
}
void pivotGrid_HyperlinkCellClick(object sender, HyperlinkCellClickEventArgs e) {
pivotGrid.PivotEngine.GetRawItemsFor(e.RowColumnIndex.RowIndex, e.RowColumnIndex.ColumnIndex);
}
}
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page