Set the
ReadOnly="true"
property on all that you don't want editable.
Refer:
BoundField.ReadOnly Property[
^]
<columns>
<asp:boundfield datafield="LoginName" headertext="Login Name" readonly="True" xmlns:asp="#unknown" />
<asp:boundfield datafield="FirstName" headertext="First Name" readonly="True" xmlns:asp="#unknown" />
<asp:boundfield datafield="LastName" headertext="Last Name" readonly="True" xmlns:asp="#unknown" />
<asp:boundfield datafield="UserType" headertext="User Type" readonly="True" xmlns:asp="#unknown" />
<asp:boundfield datafield="EmailAddress" headertext="EmailAddress" xmlns:asp="#unknown" />
</columns>
Just set the
ReadOnly
option to true on the columns you
DON'T want people to edit. The columns that don't have this set or have
ReadOnly
set to false are
editable
by the user when in edit mode.