Impostare la proprietà ReadOnly="true"
su tutto ciò che non si vuole modificabile.
Date un'occhiata a http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.boundfield.readonly.aspx
Un esempio veloce da quella pagina
<asp:gridview id="CustomersGridView"
datasourceid="CustomersSqlDataSource"
autogeneratecolumns="false"
autogenerateeditbutton="true"
allowpaging="true"
datakeynames="CustomerID"
runat="server">
<columns>
<asp:boundfield datafield="CustomerID" readonly="true" headertext="Customer ID"/>
<asp:boundfield datafield="CompanyName" readonly="true" headertext="Customer Name"/>
<asp:boundfield datafield="Address" headertext="Address"/>
<asp:boundfield datafield="City" headertext="City"/>
<asp:boundfield datafield="PostalCode" headertext="ZIP Code"/>
</columns>
</asp:gridview>
In questo caso CustomerID e società nome sono di sola lettura e non può cambiare. Indirizzo, Città e Codice postale può essere modificato.
Basta impostare l'opzione ReadOnly su true sulle colonne che NON si desidera modificare. Le colonne che non hanno questo set o che ReadOnly è impostato su false sono modificabili dall'utente in modalità di modifica.
puoi mostrare l'esempio –
Aggiunto un esempio – Kirk
puoi aiutarmi per favore con quei seni! http://stackoverflow.com/questions/7654434/solution-for-selecting-and-editing-data-at-the-same-time –