<
OLAP for WPF and Silverlight | ComponentOne
C1.WPF.Olap Namespace / C1OlapGrid Class / ShowDetail Method
Index of the row that contains the cell.
Index of the row that contains the cell.
Example

In This Topic
    ShowDetail Method (C1OlapGrid)
    In This Topic
    Shows a modal dialog containing the detail information that defines the content of a specific cell in the grid.
    Syntax
    'Declaration
     
    Public Sub ShowDetail( _
       ByVal row As Integer, _
       ByVal col As Integer _
    ) 
    public void ShowDetail( 
       int row,
       int col
    )

    Parameters

    row
    Index of the row that contains the cell.
    col
    Index of the row that contains the cell.
    Remarks
    This method provides an easy way to add drill-down functionality to the C1OlapGrid control.
    Example
    The code below handles the grid's DoubleClick event to check which cell was clicked, then invokes the ShowDetail 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);
      }
    }
    See Also