Disable Edit Column

  • Thread starter Thread starter Dude
  • Start date Start date
D

Dude

I would like to disable an edit column.
The code I am using is: e.Item.Cells(5).Enabled = False
This code greys out the column, but users can still click on it.
I have also tried: e.Item.Cells(5).Visible = False, but that messes us
the table layout - it created an empty table cell instead of not
showing the whole column.
 
I suppose you are using a Button control in the edit column

try

e.Item.Cells(5).Control(1).Visible = False

Hope this helps,

Srinivas
 

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

Back
Top