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

ColorEdit customisation

Thread ID:





61575 May 29,2007 03:22 PM UTC May 29,2007 09:14 PM UTC WinForms 1
Tags: Grouping
Asked On May 29, 2007 03:22 PM UTC

Is there any way to customise the drop down that appears for the ColorEdit cell type? I would like to remove the palette and system tabs (i.e. leave the 'known colors' tab.

Also, can i disable typing into the 'edit' part of the cell (i.e. only allow changing of the color using the drop down color chooser, not by typing into the cell).


Rajagopal [Syncfusion]
Replied On May 29, 2007 09:14 PM UTC

Hi Mitul,

You need to create a custom celltype to do this. The ColorUIControl of the GridDropDownColorUICellRenderer is private. To have only the StandardColors in the color edit cell's drop down ColorUIControl, we can have our own DropDownColorUICellRenderer. Here is a sample which displays only the StandardColors using a custom cell type called MyColorEdit.

To avoid typing into the cell, you can handle the TableControlCurrentCellStartEditing event and set e.Inner.Cancel = true.

Here is a sample download link http://websamples.syncfusion.com/samples/Grid.Windows/F61575/main.htm



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