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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to restrain display the data in a gridControl

Thread ID:





7862 Oct 13,2003 01:20 AM UTC Oct 14,2003 06:06 AM UTC WinForms 2
Tags: GridControl
Asked On October 13, 2003 01:20 AM UTC

Like the follow code : gridControl1.Model.PopulateValues(GridRangeInfo.Cells(1,1,intNumROW,intNumCOl), Datasource); when the value of the Datasource is >0 then I will display it ,or I display a blank. How to do this?

Administrator [Syncfusion]
Replied On October 13, 2003 12:11 PM UTC

You can handle the PrepareViewStyleInfo event and then change e.Style.Text if e.Style.CellValue is less than 0. Check out the D:\Syncfusion 1.6\Essential Suite\Grid\Samples\DataBound\GDBGMultiHeader sample. It handles the PrepareViewStyleInfo event. Stefan

Replied On October 14, 2003 06:06 AM UTC

thanks Stefan very much!


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

Live Chat Icon For mobile
Live Chat Icon