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. Image for the cookie policy date
close icon

Dropdown question

Hello,

How is it possible to associate a cell with a custom dropdown control?


2 Replies

DK Dmitry Kuskov November 26, 2007 11:44 AM UTC

I've found an example but now I have another question:
How is it possible to make the dropdown control resizeable (by dragging by bottom-right corner)?



HA haneefm Syncfusion Team November 27, 2007 07:39 PM UTC

Hi,

How is it possible to make the dropdown control resizeable (by dragging by bottom-right corner)?
>>>>>>>>>>>>>
Yes, you can do this by handling the BeforePopup event of the GridDropDownContainer and set the PopupHost 's FormBorderStyle to FormBorderStyle.Sizable. This will help you to resize the DropdownContainer (by dragging by bottom-right corner). Below are the codes:

GridDropDownMonthCalendarCellRenderer cr = this.gridControl1.CellRenderers["MonthCalendar"] as GridDropDownMonthCalendarCellRenderer;
if (cr != null)
{
cr.DropDownContainer.BeforePopup += new CancelEventHandler(DropDownContainer_BeforePopup);
}

void DropDownContainer_BeforePopup(object sender, CancelEventArgs e)
{
GridDropDownContainer cm = sender as GridDropDownContainer;
cm.PopupHost.FormBorderStyle = FormBorderStyle.Sizable;
}

Best regards,
Haneef


Loader.
Live Chat Icon For mobile
Up arrow icon