How to change icon of drop down color edit

Hi Haneef

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

Regards,
Ubaid Tariq

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Up arrow icon