We have a Web Form which makes use of a DataGrid.
The DataView being used as the source for the grid is dynamic (in the sense that the number of columns is variable dependent on factors).
Ideally when the user clicks the 'Edit' button against a grid row - we want some columns to be editable - and some set as read only.
As the data structure is dynamic we can't use the Designer Property Builder to set up the columns (with Read-Only as required).
How can we do this on the fly ?
I.e. we want the (x+2)th, (x+4)th columns to be set as read only.
How can we go about doing this ?
Any help would be appreciated.
Thanks in advance
Steve
The DataView being used as the source for the grid is dynamic (in the sense that the number of columns is variable dependent on factors).
Ideally when the user clicks the 'Edit' button against a grid row - we want some columns to be editable - and some set as read only.
As the data structure is dynamic we can't use the Designer Property Builder to set up the columns (with Read-Only as required).
How can we do this on the fly ?
I.e. we want the (x+2)th, (x+4)th columns to be set as read only.
How can we go about doing this ?
Any help would be appreciated.
Thanks in advance
Steve