datagrid按纽列调用事件问题
代码如下<asp:DataGrid id="D1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 136px" runat="server"
OnEditCommand="D1_EditCommand" AutoGenerateColumns="False" Width="712px">
<Columns>
<asp:EditCommandColumn ButtonType="PushButton" UpdateText="更新" HeaderText="操作区" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
</Columns>
调用下面
public void D1_EditCommand(object source,
DataGridCommandEventArgs e)
{
L1.Text="编辑成功";
D1.EditItemIndex = e.Item.ItemIndex;
D1.DataBind();
}
搞了好久也没搞出来 哪位指点一下