BoundColumn Visibility

J

Jim Heavey

Hello, I have set the visibility property of a BoundColumn in a datagrid to
false. At some point in the program I make a determination that I want to set
the property of this column to "True", but I am not sure how to do this.

I am guessing that I would use the ItemCreated Event of the datagrid to set
the property. I apparently can not use the "findControl" method. I know the
control is in the e.item.cells(4).
I tried e.item.cells(4).visible = "True" but that did not seem to do the
trick.

How to I set the property of this column to visible?
 
J

Jos

Jim said:
Hello, I have set the visibility property of a BoundColumn in a
datagrid to false. At some point in the program I make a
determination that I want to set the property of this column to
"True", but I am not sure how to do this.

I am guessing that I would use the ItemCreated Event of the datagrid
to set the property. I apparently can not use the "findControl"
method. I know the control is in the e.item.cells(4).
I tried e.item.cells(4).visible = "True" but that did not seem to do
the trick.

How to I set the property of this column to visible?

DataGrid1.Columns(4).Visible=True
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

BoundColumn 1
Dynamic BoundColumn 2
BoundColumn TextBox 2
BoundColumn 3
function call from boundcolumn 2
DataGrid + BoundColumn + UpdateCommand 1
Visibility rules 1
<P> Visibility 1

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top