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.

Gridlistcontrol scrolling

Thread ID:

Created:

Updated:

Platform:

Replies:

16510 Jul 16,2004 06:00 PM Jul 27,2004 04:09 PM Windows Forms 3
loading
Tags: GridControl
glenn
Asked On July 16, 2004 06:00 PM

How do you enable mouse wheel scrolling in a dropdown gridlistcontrol within a griddataboundgrid or a gridgroupingcontrol? Thanks, Glenn

Administrator [Syncfusion]
Replied On July 17, 2004 02:02 AM

This is not currently supported due to a technical problem. To simple way to get the mousewheel to work is to give the control input focus. But if the list gets input focus, then the grid will lose focus and its form''s title bar will flicker. If you want to see this behavior, you can set the focus in CurrentCellShowingDropdown and teh mosue wheel will work for you.
private void gridControl1_CurrentCellShowedDropDown(object sender, System.EventArgs e)
{
	GridDropDownGridListControlCellRenderer cr = this.gridControl1.CurrentCell.Renderer as GridDropDownGridListControlCellRenderer;
	if(cr != null)
	{
		//cr.ListControlPart.CausesValidation = false;
		cr.ListControlPart.Focus();
	}
}
The way to get this to work without this focus issue is handle WM_NOTIFY and reflected messages in teh grid''s WndProc. We have not done this yet.

John Baker
Replied On July 27, 2004 02:37 PM

IS this slated to be added? Reason being, if the user clicks the scrool bar after this code, the gridlistcontrol looses its focus and the mouse scroll no longer works. John >This is not currently supported due to a technical problem. > >To simple way to get the mousewheel to work is to give the control input focus. But if the list gets input focus, then the grid will lose focus and its form''s title bar will flicker. If you want to see this behavior, you can set the focus in CurrentCellShowingDropdown and teh mosue wheel will work for you. >
>private void gridControl1_CurrentCellShowedDropDown(object sender, System.EventArgs e)
>{
>	GridDropDownGridListControlCellRenderer cr = this.gridControl1.CurrentCell.Renderer as GridDropDownGridListControlCellRenderer;
>	if(cr != null)
>	{
>		//cr.ListControlPart.CausesValidation = false;
>		cr.ListControlPart.Focus();
>	}
>}
>
> >The way to get this to work without this focus issue is handle WM_NOTIFY and reflected messages in teh grid''s WndProc. We have not done this yet. >

Administrator [Syncfusion]
Replied On July 27, 2004 04:09 PM

This work is currently not scheduled, but is on our request list.

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.

;