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
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