可能重複:
Disable the Edit button on all the rows when Edit button is clicked on a particular row in GridView如何禁用所有其他行除了在EDIT模式
如何禁用除了一個在編輯模式下,所有其他行?
我試圖找到一種方法來禁用所有其他行,而我在過程中的編輯模式,除了編輯之一。
這裏是我的gridview的樣子:
<gridview....
<edittemplate...>
................
</edittemplate>
............
<asp:CommandField ButtonType="Link" ItemStyle-HorizontalAlign="Center" SelectText="Select"
EditText="Edit" UpdateText="Save" ShowEditButton="true" />
</Columns>
</asp:GridView>
感謝您的鏈接,但我不usign''我使用'的