)
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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to display customized text as alternate text in the BI PivotGrid

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

You can display a customized text for the for the corresponding cell values via QueryCellFormattedText event. Ensure to set the Handled property to true. The following code explains the same.

C#

EX: set the display text as “NA” for the cell values zero

 

this.pivotGridControl1.InternalGrid.QueryCellFormattedText += new GridCellTextEventHandler(InternalGrid_QueryCellFormattedText);

 

 

void InternalGrid_QueryCellFormattedText(object sender, GridCellTextEventArgs e)

{

if (e.Style.CellValue != null && e.Style.CellValue.ToString().Contains("$0.00"))

{

e.Text = "NA";

e.Handled = true;

}

}

 

 

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.

Up arrow icon

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

Live Chat Icon For mobile
Live Chat Icon