This is a migrated thread and some comments may be shown as answers.

Change Filterrow content by code

3 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 02 Mar 2012, 11:39 AM
Hi,

I want to select the filterrow and then the first cell.
After that I what to set the focus on it, so the user can add a filter string or
change the current cell with the tab key.

Thanks...

Marco

3 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 02 Mar 2012, 04:43 PM
Hello Marco,.

You can put a filter cell into edit mode programatically in the following way:
Me.GridView.MasterView.TableFilteringRow.Cells("ColumnName").BeginEdit()

Hope that helps
Richard

0
Marco
Top achievements
Rank 1
answered on 05 Mar 2012, 12:44 PM
Hello Richard,

thank you for your information.
The posted code snippet helps me.

Regards
Marco

0
Richard Slade
Top achievements
Rank 2
answered on 05 Mar 2012, 12:51 PM
Glad that helped Marco!
Please remember to mark as answer so others can find the solution too.
Regards,
Richard
Tags
GridView
Asked by
Marco
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Marco
Top achievements
Rank 1
Share this question
or