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

Thread ID:

Created:

Updated:

Platform:

Replies:

7862 Oct 13,2003 01:20 AM UTC Oct 14,2003 06:06 AM UTC Windows Forms 2
loading
Tags: GridControl
Kis
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

Kis
Replied On October 14, 2003 06:06 AM UTC

thanks Stefan very much!

CONFIRMATION

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.

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

;