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

[Solved] check whether a column exists or not?

2 Answers 199 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Milan Gurung
Top achievements
Rank 1
Milan Gurung asked on 29 Jul 2009, 08:38 AM
Hi,

Is there a property in RadGrid so that I can check whether a particular column exists in a grid or not? I need this in Grid_PreRender event.

Once I know this in runtime, I have the option to make it whether to make it visible or not?

Thanks a lot.

Milan G

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 29 Jul 2009, 08:49 AM
Hi Milan,

You can use GetColumnSafe() method of GridTableVIew:
http://www.telerik.com/help/aspnet/grid/radgrid-telerik.webcontrols.gridtableview-getcolumnsafe.html

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Milan Gurung
Top achievements
Rank 1
answered on 29 Jul 2009, 08:53 AM
Many thanks for the quick help. 
Tags
Grid
Asked by
Milan Gurung
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Milan Gurung
Top achievements
Rank 1
Share this question
or