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.

Using GridFilterbar with keyboard

Thread ID:

Created:

Updated:

Platform:

Replies:

10238 Jan 27,2004 10:46 AM Jan 27,2004 01:43 PM Windows Forms 2
loading
Tags: GridControl
Bidin Dinesababu
Asked On January 27, 2004 10:46 AM

Hi, I am facing a problem to use the filterbar wired with a databound grid using keyboard. I have many controls in my form, one of which is a Data bound grid control, which has a filter bar. Tabing into the grid, gives focus to it and then I can use the arrow keys to navigate among the rows, except the filter bar. I need to use the filtering option using the keyboard only and with out clicking the filterbar. Once I click on it and then arrow keys will help me to navigate across cells and F4 will bring up the popup and then RETURN key will help me selecting a filter option. I need to do the same without clicking on the filter bar. Is there any option for that. Any help is highly appreciated. thanks in advance, Bidin

Administrator [Syncfusion]
Replied On January 27, 2004 11:57 AM

Try handling the QueryNextCurrentCell event, and explicitly setting it there.
private void gridDataBoundGrid1_QueryNextCurrentCellPosition(object sender, GridQueryNextCurrentCellPositionEventArgs e)
{
	GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
	if(cc.RowIndex == this.gridDataBoundGrid1.TopRowIndex && e.Direction == GridDirectionType.Up)
	{
		cc.MoveTo(1, e.ColIndex);
		e.Handled = true;
		e.Result = true;
	}
}

Administrator [Syncfusion]
Replied On January 27, 2004 01:43 PM

Your solution worked perfect. Thank you, Bidin >Try handling the QueryNextCurrentCell event, and explicitly setting it there. >
>private void gridDataBoundGrid1_QueryNextCurrentCellPosition(object sender, GridQueryNextCurrentCellPositionEventArgs e)
>{
>	GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
>	if(cc.RowIndex == this.gridDataBoundGrid1.TopRowIndex && e.Direction == GridDirectionType.Up)
>	{
>		cc.MoveTo(1, e.ColIndex);
>		e.Handled = true;
>		e.Result = true;
>	}
>}
>

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.

;