U Need to set ComandName property.
1)In ur case set it to BtnOkDG
2) In ItemCommand Event for Datagrid Check the following
if(e.CommandName=="BtnOkDG")
{
//Process ur Event
}
Eg
private void dg_ItemCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
if(e.CommandName=="BtnOkDG")
{
dg.SelectedIndex = e.Item.ItemIndex;
//do ur Event prcessing for Ok Button here.
}
}
Hope this helps.
Thanks,
sswalia
MCSD, MCAD, OCA
"Jack" <si*****************@yahoo.co.jp> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
Hello,
In a WebForm's DataGrid,one Link button is Ok,but changed this Link button
to Push button,on click this button,this button will no reacting,and no
run this button's ItemCommand procedure.
I use C#.
Can you help me