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 display customized text as alternate text in the BI PivotGrid

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;

}

}

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
2956 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.