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 restrain display the data in a gridControl

Thread ID:





7862 Oct 12,2003 09:20 PM Oct 14,2003 02:06 AM Windows Forms 2
Tags: GridControl
Asked On October 12, 2003 09:20 PM

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 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

Replied On October 14, 2003 02:06 AM

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.

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.