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.

OnDraw not working when cell is clicked

Thread ID:

Created:

Updated:

Platform:

Replies:

6704 Aug 22,2003 11:43 AM Aug 23,2003 07:54 PM Windows Forms 2
loading
Tags: GridControl
Laurie Spencer
Asked On August 22, 2003 11:43 AM

I am using a GridDataBoundGrid with a LabelCellModel and a LabelCellRenderer derived from GridStaticCellModel and GridStaticCellRenderer. In the OnDraw of my renderer I add in a label for the text. It works when the cell is not selected. However when I click on the cell, the label disappears and only the CellValue shows up! How do I prevent this from happening? Thanks! Laurie

Administrator [Syncfusion]
Replied On August 23, 2003 04:05 AM

If you put debug output in your OnDraw, is it hit when you click the cell? Can you post your OnDraw code? If you are relying on the base class to draw the Text when it is the active cell, then the base class will display the text from the cell style.

Laurie Spencer
Replied On August 23, 2003 07:54 PM

> If you are relying on the base class to draw the Text when it is the active cell, then the base class will display the text from the cell style. That's it! Obvious in retrospect... Thanks! Laurie

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.

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.

;