We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

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;

            }

        }

 

C:\Users\labuser\Dropbox\Screenshots\Screenshot 2014-05-26 12.21.17.png

Figure: Normal Pivot Grid

 

C:\Users\labuser\Dropbox\Screenshots\Screenshot 2014-05-26 12.20.31.png

Figure: Pivot Grid with customized Hyperlink

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
2958 11/26/2014 11/26/2014 Silverlight PivotGridControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.