Raed Sawalha wrote:
Dear :
I have datagrid with 5 databound columns I need when user click edit
link to just edit the first cell for each row in column (1). and
other 4 columns keeps its previous form as non editable cell.
how can I achieve this?
Set AutoGenerateColumns=False, and then add each column as a BoundColumn.
For the non-editable columns, set ReadOnly=True:
<asp:DataGrid ....>
<Columns>
<BoundColumn DataTextField="myField1" />
<BoundColumn DataTextField="myField2" ReadOnly="True" />
<BoundColumn DataTextField="myField3" ReadOnly="True" />
<BoundColumn DataTextField="myField4" ReadOnly="True" />
<BoundColumn DataTextField="myField5" ReadOnly="True" />
</Columns>
</asp:DataGrid>
Use the datagrid's Property Builder to set other properties.
--
Riki