Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
shemayb
Posting Yak Master
159 Posts |
Posted - 2008-01-08 : 02:33:56
|
How can i hide columns in a datagrid at runtime using c#?Funnyfrog |
|
hey001us
Posting Yak Master
185 Posts |
Posted - 2008-01-15 : 20:38:39
|
try this property... Visible=False<asp:BoundColumn Visible="False" DataField="ColName" SortExpression="ColName" ReadOnly="True" HeaderText="ColName"></asp:BoundColumn>hey |
|
|
jsmith8858
Dr. Cross Join
7423 Posts |
Posted - 2008-01-16 : 08:35:23
|
If the variable DG is your datagrid, at runtime you would use:DG.Columns( <column number> ).Visible = <True or False>- Jeffhttp://weblogs.sqlteam.com/JeffS |
|
|
|
|
|