derived static cell

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?

1 Reply

AD Administrator Syncfusion Team 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";
}

Loader.
Up arrow icon