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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to enable Hyperlink for specific Row or Column or Cells in PivotGrid Silverlight

Platform: Silverlight |
Control: PivotGridControl |
Published Date: November 26, 2014 |
Last Revised Date: November 26, 2014

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

 

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon