gridview sorting help-

G

Guest

has anyone been able to sort a gridview without using a sqlobjectdatasource
or typed dataset? My problem is that my method to bind my datagrid takes
parameterts from dropdowns, then the user clicks go and the grid binds.

example:

void GetSales(string strLastname
{

DataSet dsSales;

dsSales = CarSales.GetSalesForSalesman(strLastname);

dg.DataSource = dsSales;

dg.DataBind();

}

Now, I can get the code (in the below URL) working on my pages that is doing
a direct pull, but not ones that are using params to load the grid.
Is there a way to sort the gridivew without a datasource object and bind the
gridview using parameters?


http://www.learnasp.com/freebook/learn/cs_GridViewSortingNoDataSourceControl.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top