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.
Unfortunately, activation email could not send to your email. Please try again.

drop down cell button

Thread ID:

Created:

Updated:

Platform:

Replies:

48072 Aug 18,2006 08:59 AM Aug 21,2006 01:08 AM Windows Forms 1
loading
Tags: GridControl
Sivaiah Boppana
Asked On August 18, 2006 08:59 AM

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

Administrator [Syncfusion]
Replied On August 21, 2006 01:08 AM

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

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.

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.

;