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

Hide template column from codebehind

2 Answers 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Priya
Top achievements
Rank 1
Priya asked on 19 Feb 2009, 11:31 AM
Hi,

I hav a template column and i need to hide it on the databound event when a specified condition is satisfied...

and hav to make it visible when not satisfied..

plz help me..

thanks...

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 19 Feb 2009, 12:07 PM
Hi Priya,

You can use the Display property  to show/hide the GridTemplateColumn depending on the condition.

CS:
 
RadGrid1.MasterTableView.GetColumnSafe(
"columnUniqueName").Display = false


Thanks
Shinu
0
Priya
Top achievements
Rank 1
answered on 20 Feb 2009, 07:26 AM
Hi,
It  worked

thanks alot
Tags
Grid
Asked by
Priya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Priya
Top achievements
Rank 1
Share this question
or