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

Resizing Grid Custom Cell Type

Hi,

I want to know if there is any way i can stop resizing of the drop down container in my custom cell type in a grid control?


1 Reply

SR Sri Rajan Syncfusion Team May 27, 2008 10:20 AM UTC

Hi Imran,

Thank you for your patience.

You need to handle BeforePopup event of DropDownContainer in the DropDownCellRenderer class and set the PopHost.FormBorderStyle property to FormBorderStyles other than Sizable and SizableToolWindow, to stop resizing the DropDownContainer. Please refer the sample code for more details.

void DropDownContainer_BeforePopup(object sender, System.ComponentModel.CancelEventArgs e)
{
this.DropDownContainer.PopupHost.FormBorderStyle = FormBorderStyle.None;
}


Here is the minimal sample which implements this task.
http://websamples.syncfusion.com/samples/grid.windows/F73379/main.htm

Please let me know if this helps.

Best Regards,
Srirajan



Loader.
Live Chat Icon For mobile
Up arrow icon