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.

derived static cell

Thread ID:

Created:

Updated:

Platform:

Replies:

3910 Apr 17,2003 07:13 AM Apr 17,2003 08:49 AM Windows Forms 1
loading
Tags: GridControl
Peter
Asked On April 17, 2003 07:13 AM

I created my own cell type derived from static cell with a cell button. Now I want to have the cell value be "1" and the displayed text should be "Hello". So I overwrote the Draw method and set the style.text = "Hello". That works fine if the cell isn't the current cell. If it's the current cell the cell value "1" is displayed again. How can I change that behaviour?

Administrator [Syncfusion]
Replied On April 17, 2003 08:49 AM

Try overriding OnInitialize in the renderer, call the baseclass, and set the control there.
protected override void OnInitialize(int rowIndex, int colIndex)
{
	base.OnInitialize(rowIndex, colIndex);
	this.ControlValue = "1";
}

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.

;