How to enable Hyperlink for specific Row or Column or Cells in PivotGrid Silverlight
It is possible to create a hyperlink for very specific row and column by setting the isHyperlinkCell property to true or false based on the customized conditions.The below code snippet explains the use of the same by setting the hyperlink to first column alone.
C#
void InternalGrid_PrepareRenderCell(object sender, GridPrepareRenderCellEventArgs e) { if (e.Cell.ColumnIndex != 0 && e.Cell.ColumnIndex < pivotGridControl1.PivotRows.Count) { pivotGridControl1.RowHeaderCellStyle.IsHyperlinkCell = false; } else if (e.Cell.ColumnIndex == 0) { pivotGridControl1.RowHeaderCellStyle.IsHyperlinkCell = true; } } |
Figure: Normal Pivot Grid
Figure: Pivot Grid with customized Hyperlink