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

Gridlistcontrol scrolling

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

3 Replies

AD Administrator Syncfusion Team 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.


JB John Baker 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. >


AD Administrator Syncfusion Team July 27, 2004 04:09 PM

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

Loader.
Live Chat Icon For mobile
Up arrow icon