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


Thread ID:





25326 Feb 24,2005 02:04 PM UTC Feb 24,2005 03:05 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On February 24, 2005 02:04 PM UTC

What is the difference between those events: CellDrawn DrawCellDisplayText QuerryCellInfo Assuming i want to update my columnheader based on conditon, where is the best place to go and why ? Thanks B.S.

Administrator [Syncfusion]
Replied On February 24, 2005 03:05 PM UTC

CellDrawn is raised on a cell by cell basis as the grid paints itself after the grid has finished drawing the cell. This is a good event to use to ''decorate'' individual cells with additional drawing after the grid has done its drawing. DrawCellDisplayText is raised as the grid is drawing a particular cell to give you a chance to handle drawing or setting the text that is displayed in the cell. For example, this is a good place to do special formatting of the text is a ReadOnly grid. It is also used to do GDI text drawing to avoid some of the special antialias features in the GDI+ text drawing. QueryCellInfo is raised anytime the grid needs a cell style (colstyle, rowstyle, tablestyle) for any reason (including drawing). The is event gives you dynamic access that allows you to control the style values if you need this.


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