Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using a GridView control on an ASP.net 4.0 web form, that I am trying to Develop. I am trying to use a datasource control with the gridview control to pass a "Start date" value and an "end date" value to a SQLServer stored procedure.

Hopefully, this will allow me to load the gridview with the data set returned by the Stored procedure. (It has multiple columns of data, which is why I am trying to use a gridview.)

The goal is to:
1.) display the Web form
2.) User then selects Start Date and End Date for range of data to be viewed.
3.) User Clicks a button which then passes the selected dates as parameters to the stored procedure filling the databound gridview control.

I find the Microsoft Help files and walkthroughs are confusing and not much help at all.

If I am trying to "scratch my ear with my elbow", please let me know.

If You know of an easier way to get and display the data, then please let me know.

If you have accomplished a task like this yourself in the past, I would sincerely appreciate a reply.

CLW
Posted

1 solution

Refer - How filter a Gridview by daterange and two textbox?[^].

You need to use FilterExpression property.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900