[]
        
(Showing Draft Content)

C1.WPF.Pivot.FlexPivotGrid.ShowDetail

ShowDetail Method

ShowDetail(int, int)

Shows a modal dialog containing the detail information that defines the content of a specific cell in the grid.

Declaration
public void ShowDetail(int row, int col)
Parameters
Type Name Description
int row

Index of the row that contains the cell.

int col

Index of the row that contains the cell.

Remarks

This method provides an easy way to add drill-down functionality to the FlexPivotGrid control.

Examples

The code below handles the grid's DoubleClick event to check which cell was clicked, then invokes the ShowDetail(int, int) method to display a modal dialog containing all the raw data items that were used to calculate the value of the cell that was clicked.

void OlapGrid_DoubleClick(object sender, MouseButtonEventArgs e)
{
  var grid = _c1OlapPage.OlapGrid;
  var ht = grid.HitTest(e);
  if (ht.CellType == CellType.Cell && ht.Row > -1 && ht.Column > > -1)
  {
    grid.ShowDetail(ht.Row, ht.Column);
  }
}