Current filter:
                                You should refresh the page.
                                  • Hello,

                                    in the past weeks i was working with the DevExpress Grid. I fill a DataSet in my Visio-Addin with some visio shape data and Display the results in a gridview of a devexpress grid. Wenn the user changed the selection in my readonly grid i read the row data and i programmatically jump to the right page and zoom to the shape which is selected in the datagrid. After this Operation i set back the Focus to the grid with
                                    GridView.Focus()
                                    Thgis switched the Focus back to the grid on my Dialog form, so the user was able to go from shape to shape by selecting the grids rows just with the Cursor up and down keys.

                                    Now, the Situation has changed. I changed the grid from readonly to be editble and also i provided the FindPanel to be visible always. Now I Encounter some problems in my behaviour :
                                    When a user enters a search value in the Find box, then the grid immidiately filters the rows. and sometimes (not after every char) i lost the Focus inside of the FIndPanel.

                                    Example: THe user want to search for a string like "01.351" (-> a room number which is provided in on of the columns) then the user enters:
                                    "0" + "1" -> and the Focus is still in the Find Panel
                                    Once he enters the "." -> the Focus in the Find Panel get lost
                                    And while the user is still thinking he is in the Find Panel and continues to enter "351" this values is set as an edited vaqlue to the active row cell .

                                    So i am asking myself if i have any Options to programmatically set the Focus to the FindPanel of the grid.

                                    So far i am calling the GridView-Focus() method in the end of the C olumnFilterChanged and SelectionChanged Event of the GridView.
                                • Svetlana (DevExpress Support) 08.03.2015

                                  Hi, 

                                  It is possible to focus the Find Panel if you call the GridView.ShowFindPanel method. However, it is unclear why the Find Panel loses its focus. It would be great if you provide us with a small project to illustrate this behavior. In this case, we will be able to find a reason for this behavior and suggest an appropriate solution. 

                                  I look forward to your response. 

                                • Vince Gallo 02.04.2016
                                  Probably too late now, but just add SendKeys.Send("^F"); to the end of your form's load event.
                                • Tom P. 02.12.2019
                                  Well, searching myself for this problem, and finding tens of tickets explaining that just calling the ShowFindPanel method or sending the keys, this simply doesn't work...

                                  Interesting allthough is, that if you call the SendKeys.Send("^F"); both in the OnLoad and the OnShow method of your form, it works for me.

                                  So, just added the following code to my form:

                                  [C#]
                                  protected override void OnShown(EventArgs e) { base.OnShown(e); myGridView.Focus(); SendKeys.Send("^{F}"); } protected override void OnLoad(EventArgs e) { base.OnLoad(e); SendKeys.Send("^{F}"); }


                                0 Solutions

                                Creation Date Importance Sort by