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

How to change icon of drop down color edit

Thread ID:

Created:

Updated:

Platform:

Replies:

54906 Jan 19,2007 11:09 AM UTC Jan 19,2007 03:32 PM UTC WinForms 1
loading
Tags: GridControl
Ubaid
Asked On January 19, 2007 11:09 AM UTC

Hi Haneef

How can i change the icon of Drop Down Color Edit.

Regards,
Ubaid Tariq

Administrator [Syncfusion]
Replied On January 19, 2007 03:32 PM UTC

Hi Ubaid,

You can use DrawCellButton event and set the e.Button.Text to some new value to want to display. Here is a code snippet

//Form Load event.
this.gridControl1.DrawCellButton +=new GridDrawCellButtonEventHandler(gridControl1_DrawCellButton);

private void gridControl1_DrawCellButton(object sender, GridDrawCellButtonEventArgs e)
{
if( e.Style.CellType == "ColorEdit")
e.Button.Text = "$";
}

Best Regards,
Haneef

CONFIRMATION

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.

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

;