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

DELETE RADGRID COLUMN AND PUTTING IT INTO RECYCLE BIN..??

3 Answers 59 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
KIRAN RAJ
Top achievements
Rank 1
KIRAN RAJ asked on 11 Oct 2011, 06:27 AM
Hi GUYS,
I am trying to move a column from a radgrid and put  into recycle bin..can any one suggest a way...?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Oct 2011, 07:11 AM
Hello Kiran,

As far as I know it is not possible to delete a Grid column which is already added in the Grid's Column collection. One suggestion will be to set its Visibile/Display property to false as shown below.
C#:
RadGrid1.MasterTableView.GetColumn("ColUniqueName").Visible = false;
or
RadGrid1.MasterTableView.GetColumn("ColUniqueName").Display= false;

Thanks,
Shinu.
0
KIRAN RAJ
Top achievements
Rank 1
answered on 11 Oct 2011, 08:09 AM
Thanks shinu, 
is there any event or such where i drag that particular  column outside the radgrid and  make the coulmn invisible..??
RadGrid1.MasterTableView.GetColumn("ColUniqueName").Display= false;
0
Veli
Telerik team
answered on 11 Oct 2011, 12:05 PM
You can use the header context menu in RadGrid to hide the column.

Veli
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Ajax
Asked by
KIRAN RAJ
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
KIRAN RAJ
Top achievements
Rank 1
Veli
Telerik team
Share this question
or