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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

derived static cell

Thread ID:





3910 Apr 17,2003 11:13 AM UTC Apr 17,2003 12:49 PM UTC WinForms 1
Tags: GridControl
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";


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon