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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





31443 Jul 7,2005 02:23 PM UTC Jul 8,2005 08:32 AM UTC WinForms 4
Tags: GridControl
Administrator [Syncfusion]
Asked On July 7, 2005 02:23 PM UTC

I''m drawing some text in the header of my GridControl How can i trigger a redrawing of cell manually I can''t figure out how to use cellDrawn event Thanks Silver

Martin Cyr
Replied On July 7, 2005 03:15 PM UTC

I don''t understand your problem, do you really want to trigger a redraw in the cellDrawn? Be carefull about infinite recursive calls then. But you might wanna try CurrentCell.Refresh()

Administrator [Syncfusion]
Replied On July 7, 2005 04:38 PM UTC

Are you using e.Graphics.DrawString in your CellDrawn event handler to draw the text you want to see when e.ColIndex points to the column where the text should be, and e.RowIndex i s zero?

Administrator [Syncfusion]
Replied On July 8, 2005 08:27 AM UTC

Yes Clay this is exactly what i do. I draw on the suface since i handle manually many other drawing items on the header cell. Silver

Administrator [Syncfusion]
Replied On July 8, 2005 08:32 AM UTC

If you want to trigger the redrawing of a cell, the you can call grid.RefreshRange passing it a GridRangeInfo object containing the cell. But as Martin noted, if you try to do this from one of the drawing events, you have to use a flag avoid recursive calls. But calling grid.RefreshRange from outside the drawing code should trigger the drawing.


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