C1.Silverlight.Olap.5
ShowDetail Method
Example 

Index of the row that contains the cell.
Index of the row that contains the cell.
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 System.Integer, _
   ByVal col As System.Integer _
) 
public void ShowDetail( 
   System.int row,
   System.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

Reference

C1OlapGrid Class
C1OlapGrid Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.