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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

derived static cell

Thread ID:

Created:

Updated:

Platform:

Replies:

3910 Apr 17,2003 11:13 AM UTC Apr 17,2003 12:49 PM UTC WinForms 1
loading
Tags: GridControl
Peter
Asked On April 17, 2003 11:13 AM UTC

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 12:49 PM UTC

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.

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

;