Change Filterrow content by code

4 posts, 1 answers
  1. Marco
    Marco avatar
    19 posts
    Member since:
    Oct 2011

    Posted 02 Mar 2012 Link to this post

    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
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 02 Mar 2012 Link to this post

    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

  3. Marco
    Marco avatar
    19 posts
    Member since:
    Oct 2011

    Posted 05 Mar 2012 Link to this post

    Hello Richard,

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

    Regards
    Marco

  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 05 Mar 2012 Link to this post

    Glad that helped Marco!
    Please remember to mark as answer so others can find the solution too.
    Regards,
    Richard
Back to Top