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.
Syncfusion Feedback

How to display the values of '0' as a blank field in the SummaryRow?

 

QueryCellStyleInfoEvent should be used to display the SummaryRow cell value as blank field whose value is '0'.

C#

void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)

{

if (e.TableCellIdentity.TableCellType == GridTableCellType.SummaryFieldCell)

{

//Check the value of GroupCaptionSummaryCell. If the value is "0" then change the e.Style.Text

if (e.Style.Text == "0")

{

e.Style.Text = " ";

}

}

}

VB

Private Sub GridGroupingControl1_QueryCellStyleInfo(ByVal sender As Object, ByVal e As GridTableCellStyleInfoEventArgs)

If e.TableCellIdentity.TableCellType = GridTableCellType.SummaryFieldCell Then

'Check the value of GroupCaptionSummaryCell. If the value is "0" then change the e.Style.Text

If e.Style.Text = "0" Then

e.Style.Text = " "

End If

End If

End Sub

Sample:

http://help.syncfusion.com/support/samples/kb/Grid.Web/6.1.0.34/GGCSummary/Summary.zip

Article ID: Published Date: Last Revised Date: Platform: Control:
734 04/30/2011 07/10/2014 ASP.NET Web Forms (Classic) GridGroupingControl
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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