Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gridview + interactive query + sorting + paging
Message
De
14/09/2007 16:14:41
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Gridview + interactive query + sorting + paging
Divers
Thread ID:
01254435
Message ID:
01254435
Vues:
68
I'm creating a page that has a query interface:

search by: [dropdown: User, Order number, This value, That value, ...]
value: [ the value ]
From: [ start date ]
To: [ end date ]
[ Do Search Button ]

A query will populate a GridView which will have both Sorting and Paging.

Looking at the MM example "How To Add Paging to a GridView" I've got a clue, but not sure 1) how best to connect presentation layer (the query) to the business object (GetDatapage)
2) how to connect sorting events /or/ use ObjectDataSource.SortParameterName
3) how to use/not use ObjectDataSource.FilterParameters given the use of stored Procedure
4) how to add page/variable parameters the the query controls drive

I'm guessing just set up all the parameters in the page's ObjectDataSource1_Selecting() that the GridView uses.
    protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {
        // [edited] this won't work
        //  ObjectDataSource1.SelectParameters["accessLevel"] = myAccessLevelVar;

        // does this get called when grid Sorting event?
        // does this get called when grid PageIndexChanging event?
    }
Any suggestions? Thanks!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform