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

Custom In-Cell editor

Thread ID:





27354 Apr 11,2005 01:09 PM UTC Apr 11,2005 04:27 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On April 11, 2005 01:09 PM UTC

When the user double clicks to enter in-cell editing, I do not want to use the "textbox" control to perform the edit. I want to choose the control to use at the time of the action. Is there an example of how to hook this custom in-cell editor to the grid model? If not, can you give a little sample of how to do this? Steve

Administrator [Syncfusion]
Replied On April 11, 2005 04:27 PM UTC

If it is a single cell in a GridControl where you want to use a special control, you can set the style.CellType = "Control" and set style.Control to be an instance of your special control. MyControl myControl1 = new MyControl(); //.... gridControl1.Controls.Add(myControl1); //... gridControl1[2,2].CellType = "Control"; gridControl1[2,2].Control = myControl1; But if you want to do control sharing across multiple cells, then you need to derive your own CellModel class and CellRenderer class. Take a look at either this sample, \Essential Suite\\Windows\Grid.Windows\Samples\CellTypes\CalendarCells or the SliderCells sample in the same folder. They derive cell type classes.


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