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

How to restrain display the data in a gridControl

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?

2 Replies

AD Administrator Syncfusion Team October 13, 2003 08:11 AM

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


KI Kis October 14, 2003 02:06 AM

thanks Stefan very much!

Loader.
Live Chat Icon For mobile
Up arrow icon