Shows a modal dialog containing the detail information that defines the content
of a specific cell in the grid.
Namespace:
C1.Silverlight.OlapAssembly: C1.Silverlight.Olap.5 (in C1.Silverlight.Olap.5.dll)
Syntax
C# |
---|
public void ShowDetail( int row, int col ) |
Visual Basic |
---|
Public Sub ShowDetail ( _ row As Integer, _ col As Integer _ ) |
Parameters
- row
- Type: System..::..Int32
Index of the row that contains the cell.
- col
- Type: System..::..Int32
Index of the row that contains the cell.
Remarks
This method provides an easy way to add drill-down functionality to the
C1OlapGrid control.
Examples
The code below handles the grid's DoubleClick event to check which
cell was clicked, then invokes the ShowDetail(Int32, Int32) 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.
Copy CodeC#

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); } } |