Hi all,
i have an sql stored procedure that result in multiple data sets....
i get the data using ado.net and fill them in dataset...
then i use the needdatasource ecevnt to bind my grid with dataset...
the result always that the grid is bounded only to the first datatable in this dataset!!!! and i am sure that this dataset has more than one datatable....
i need to display the results from all datatables in this dataset using one grid....
all datatables have the same structure of columns....
is is feature supported in RadGrid?
and if yes, what is wrong with my code???
please help me very soon...
thanks
Asa'ad
i have an sql stored procedure that result in multiple data sets....
i get the data using ado.net and fill them in dataset...
then i use the needdatasource ecevnt to bind my grid with dataset...
the result always that the grid is bounded only to the first datatable in this dataset!!!! and i am sure that this dataset has more than one datatable....
i need to display the results from all datatables in this dataset using one grid....
all datatables have the same structure of columns....
protected void gvData_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
getData();
}
protected void getData()
{
try
{
DataSet ds ;
//code to get data from database through classes.
if (ds != null ) {
gvData.DataSource = ds
}
else {
//show error while getting data, contact your system admin
}
}
catch (Exception ex)
{
//handle exception code
}
}
is is feature supported in RadGrid?
and if yes, what is wrong with my code???
please help me very soon...
thanks
Asa'ad