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
 
Back
Top