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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to maintain the focus on filter bar cell while changing the data source?

Platform: WinForms |
Control: GridGroupingControl |
Published Date: May 23, 2015 |
Last Revised Date: June 16, 2015

Description:

As per the Grid’s internal architecture, when you change the DataSource in a key press event, it makes the Grid reload to ensure the current cell ends its focus. To type continuously in the filter bar cell while the DataSource is changing, there should be workaround as follows.

Solution:

When you want to maintain the focus on the filter bar cell while changing the data source on the key press event, you need to get the location and the text of the filter bar cell by using the TableControlCurrentCellKeyPress event. After changing the data source, you need to move the focus to the same filter bar cell, so that the focus is maintained on the same cell.

C#

 

VB

Sample Links:

C#: FilterBarCellFocus

VB: FilterBarCellFocus

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon 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.Close Icon