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.

Border around dropdowncontainer

Thread ID:

Created:

Updated:

Platform:

Replies:

26160 Mar 15,2005 04:03 PM Mar 15,2005 05:13 PM Windows Forms 1
loading
Tags: GridControl
Ted Osberg
Asked On March 15, 2005 04:03 PM

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!

Administrator [Syncfusion]
Replied On March 15, 2005 05:13 PM

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;
	}
}

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.

;