how can i clear gridview
-
please give me simple code to clear gridview
if you have AutoGenerating Columns then just change the DataSource example:
GridView1.DataSource = datasource GridView.DataBind(); GridView1.DataSource = newdatasource GridView.DataBind();
if you are using BoundFields then I will sugest u using new GridView control for new datasource
I Love T-SQL
-
Hi RajKumar, adap.Fill(ds,"table1"); ds.Clear();Clear the dataset and Then fill another data and bind to the gridview
hi i am not using any adapetr or dataset . i am using data table.
-
hi i am not using any adapetr or dataset . i am using data table.
Hi RajKumar, ok then will have a option dt.Clear();
-
if you have AutoGenerating Columns then just change the DataSource example:
GridView1.DataSource = datasource GridView.DataBind(); GridView1.DataSource = newdatasource GridView.DataBind();
if you are using BoundFields then I will sugest u using new GridView control for new datasource
I Love T-SQL
-
You want to clear and Fill the grid.You want these two process in two different events or only one event.
Cheers..! Vijay s
see i am using datatable to fill gridview and i am using this for some calculater ... it will display result in grid view .. after one one calculation if user want to do next calculation then previous record shd not display.. plz help me in this.
-
Hi RajKumar, ok then will have a option dt.Clear();
see i am using datatable to fill gridview and i am using this for some calculater ... it will display result in grid view .. after one one calculation if user want to do next calculation then previous record shd not display..
-
see i am using datatable to fill gridview and i am using this for some calculater ... it will display result in grid view .. after one one calculation if user want to do next calculation then previous record shd not display.. plz help me in this.
-
So you are not using DB.How many DataTable you are using ? Can you send your Code..?
Thank & Regards Vijay s
can u tell me how to delete complete data only from data table before adding data to it ?
-
can u tell me how to delete complete data only from data table before adding data to it ?
-
please give me simple code to clear gridview
simply bind the gridview without specifying the datasource...data will get vanished
Ashish Sehajpal