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

Changing the Icon for color picker

Thread ID:





61498 May 28,2007 07:01 AM UTC May 28,2007 10:25 AM UTC WinForms 1
Tags: GridControl
Faheem Rauf
Asked On May 28, 2007 07:01 AM UTC

Hi, A cell type Color Picker in virtual grid has a default button icon “@”, can you please guide me how I can change it.

Administrator [Syncfusion]
Replied On May 28, 2007 10:25 AM UTC

Hi Ali,

You will have to create a custom celltype by deriving the control. It requires a model class and a renderer class. The model class handles the serialization requirements for the control and creates the renderer class. The renderer class handles the UI requirements of the cell.

In the Renderer part you have to set the DropDownButton.Text to whatever you want.

public class GridDropDownColorUICellRenderer1: GridDropDownCellRenderer
ColorUIControl colorUI;

public GridDropDownColorUICellRenderer1(GridControlBase grid, GridCellModelBase cellModel)
: base(grid, cellModel)
DropDownButton = new GridCellButton(this);
DropDownButton.Text = "**";//"@"

Here is a small sample:

Kindly let us know if this helps.

Best Regards,


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