Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to filter data in a dataview before binding to datagrid
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Titre:
How to filter data in a dataview before binding to datagrid
Divers
Thread ID:
00673397
Message ID:
00673397
Vues:
50
I have a resultset returned from a stored procedure with the following fields:
----------------------------------------------------
roomname,schedfrom,schedto,  openslotstart,    openslotend
OR 1        700      1700   07/15/2002 17:01  07/15/2002 18:01      
OR 2        700      1700   07/15/2002 07:00  07/15/2002 08:01
I need to be able to filter the result to display only rows where the hour portion of the OpenSlotStart is between the schedfrom and schedto.

I tried the dataview.RowFilter but I can't figure out the right way to work it.
            oCommand.Connection = oConn

            dvRooms = VFPToolkit.vfpData.SqlExecute(oConn, oCommand, "deptview")
            VFPToolkit.vfpData.SqlDisConnect(oConn)

            dvRooms.RowFilter = "datepart(DateInterval.Hour,OpenTimeEnd)*100 < OpenTimeEnd"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform