in

CodeSmith Community

Your Code. Your Way. Faster!

Trigger GridViewSearchPanel from the codebehind

Last post 03-30-2007 3:58 PM by mike123. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-30-2007 2:57 PM

    • david849
    • Top 500 Contributor
    • Joined on 03-13-2007
    • Posts 12
    • Points 275

    Trigger GridViewSearchPanel from the codebehind

    This is a stupidly simple question...but I can't figure it out. Stick out tongue

    I've got a gridViewSearchPanel that controls an EntityGridView.  In the codebehind I'm programatically setting the search panel with this code:

                    searchpanel.SearchFieldName = fieldName;
                    searchpanel.SearchKeyword =profileName;
                    searchpanel.SearchOperator =SearchOperator.Equals;

    What I cannot figure out - is how to fire the filter event from the codebehind.  Everything populates on the page, but it does not filter anything until I press the filter button....

    Thanks for the help guys!

    David 

    Filed under:
    • Post Points: 35
  • 03-30-2007 3:58 PM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 723
    • Points 16,775

    Re: Trigger GridViewSearchPanel from the codebehind

    Answer

    David,

     You shouldn't do anything extra, make sure you initialize searchpanel properties no later then Page_Load event. (Also you may want to play with searchpanel.Filter property, where you can explicitly set filter condition)

     

    Mike Shatny
    -------------------------------------
    Member of the .netTiers team
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 5
Page 1 of 1 (2 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems