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. Image for the cookie policy date
close icon

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";

Live Chat Icon For mobile
Up arrow icon