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