Gridview edit cell
-
Hi, I am working on a Asp.net application. In this I have a gridview with autogenerate columns and data bind using linq in code behind. In this gridview I need to edit the cell on which I click. For example I have 5 columns in my gridview and I want to edit only 2,3,4 columns in the gridview and 1,5 columns are not editable. If anyone have any idea to do this please reply me. Thanks in advance.
-
Hi, I am working on a Asp.net application. In this I have a gridview with autogenerate columns and data bind using linq in code behind. In this gridview I need to edit the cell on which I click. For example I have 5 columns in my gridview and I want to edit only 2,3,4 columns in the gridview and 1,5 columns are not editable. If anyone have any idea to do this please reply me. Thanks in advance.
Just
Disabled
the cell duringGridView1_RowDataBound
Event of GridView. likee.Row.Cells(3).Enabled = False
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.