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

[Solved] Hiding columns except in Edit Form drop-down

2 Answers 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 06 May 2008, 10:00 PM
Most DB tables will have more columns and column data than can fit across a single row in a web page.

I would like to be able to hide columns from the grid EXCEPT in the Edit FORM drop-down where I would like them to show up.

Can this be done from a single <Columns> collection or any way using the Column Editor controls in the Edit Form without having to use a EditFormTemplate which doesnt seem to allow the Editor controls... ?

2 Answers, 1 is accepted

Sort by
0
Rob
Top achievements
Rank 1
answered on 06 May 2008, 10:49 PM
Okay so "RTFM"...  Visible="False" does the trick...
0
Princy
Top achievements
Rank 2
answered on 07 May 2008, 04:48 AM
Hi Rob,

You can also use the Display property to achieve the desired effect.

ASPX:
 <telerik:GridBoundColumn DataField="ProductID"  Display="false" DataType="System.Int32" HeaderText="ProductID" 
                          SortExpression="ProductID" UniqueName="ProductID"


Thanks
Princy.
Tags
Grid
Asked by
Rob
Top achievements
Rank 1
Answers by
Rob
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or