This is a migrated thread and some comments may be shown as answers.

want to remove RadGrid completely from the form

2 Answers 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Syed
Top achievements
Rank 1
Syed asked on 17 May 2009, 11:04 AM
Hi,

I put two RadGrid on the form. Is it possible to remove grid from the from.

If i used visible=false, i will hide. But i want to remove completely.

Thanks.

Regards
Syed Arshad

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 18 May 2009, 05:40 AM
Hi Syed,

Setting the Visible/Display property will only hide the Grid. If you want to remove the Grid completely from the page it is better to delete the Grid from the design page. You may also try with the following code snippet to remove the control in the code behind.

CS:
 
this.Page.Controls.Remove(RadGrid1); 
        Page.DataBind(); 


Princy.
0
Syed
Top achievements
Rank 1
answered on 18 May 2009, 10:09 AM
I used the following code on load event and as well on button click, its not removing the radGrid from the page.

Thanks.

Tags
Grid
Asked by
Syed
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Syed
Top achievements
Rank 1
Share this question
or