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

Border around dropdowncontainer

How to I get my CustomDropDown class to to display the same borderstyle you use in your sample "InDepth\DropDownGrid"? The only options I see for the dropdowncontainer are Fixed3D, FixedSingle, or None, yet the borderstyle in GridA (for example) clearly shows a different style. How can I set mine to show the same? thanks!

1 Reply

AD Administrator Syncfusion Team March 15, 2005 10:13 PM UTC

It is the border on the form that holds the popup container that you need to set. This parent form is a little tough to get at, but you can do it in the CurrentCellShowingDropDown event.
private void grid_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e)
	DropDownGridCellRenderer cr = this.gridControl1.CurrentCell.Renderer as DropDownGridCellRenderer;
	if(cr != null)
		cr.PopupControlContainer.PopupHost.FormBorderStyle = FormBorderStyle.FixedDialog;

Live Chat Icon For mobile
Up arrow icon