9 Answers, 1 is accepted
I found this but it doesn't work.
dgvOrder.CurrentRow = dgvOrder.MasterView.TableFilteringRow;
dgvOrder.CurrentColumn = dgvOrder.Columns;
You can use the following code for this:
I hope this will be useful. Let me know if you have additional questions.
thanks for the solution !
the call works as desired.
how can i set the focus on the search-textfield so that you can start directly with the input of the filtertext ?
I could not find a good way for this. The only solution would be to click the textbox with code when the popup is opened:
In addition, the textbox has correct size on my side. I have attached my test project. Could you please check it and let me know how it differs from your real setup?
I am looking forward to your reply.
many thanks for the sample application.
the textbox has the right size in your example. however the click into the textbox doesn't seem to work. i still have to click into the textbox before writing anything.
the goal is to get an input possibility for filtering without using the mouse.
Is there any reason why this
The mistake is mine. You need to send a mouse up message as well. This way you will be able to directly type in the text box:
The cursor needs to be somewhere in the popup because otherwise the popup will be closed (the popup will receive the message as well). Just calling the Focus method would not work because the textbox is inside a popup which is a separate window. This method is inherited from the standard controls and we do not have control over this functionality.
Let me know if you have additional questions.
exactly what it was. Works as desired.
thank you very much for the excellent support.