take a data set into your function and by query assign the values of your query to dataset
then bind the grid as follows:
//gridname:GridView1
datasetname: Dataset1
GridView1.DataSource = DataSet1;
GridView1.dataBind();
whatever ur source is gridview used these two lines to bind
thanks......
|