drop down cell button

Hi
Is there any way to change drop down cell type button to customised button??
Thanks
Siva

1 Reply

AD Administrator Syncfusion Team August 21, 2006 05:08 AM UTC

Hi Sivaiah,

You need to handle the DrawcellButton event to customize the dropdown cell button. Please find the code snippet here.

private void grid_DrawCellButton(object sender, Syncfusion.Windows.Forms.Grid.GridDrawCellButtonEventArgs e)
{
if( e.Style.CellType == "ComboBox")
{
e.Cancel = true;
e.Graphics.DrawImage(Image.FromFile(@"./../../Bitmap1.bmp"),e.Button.Bounds);
}
}

Also refer the CellButtons browser sample to customize the GridCellButton.
\Syncfusion\Essential Studio\4.3.0.0\windows\Grid.Windows\Samples\In Depth\CellButtons\cs

Let me know if this helps.
Best Regards,
Haneef

Loader.
Up arrow icon