C
Child X
Hi all,
I have the following datagrid:
<asp:GridView ID="gv" AutoGenerateColumns="False" DataKeyNames="ID"
runat="server">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID:" />
<asp:CommandField ShowDeleteButton="true" />
</Columns>
</asp:GridView>
What i want to acheive is attach a onclick javascript event on the delete
button generated in the Grid.
Can anyone give me an idea of how to do this in 2.0?
Would i use the OnRowDataBound event?
How would i access the button in each row via code?
Cheers,
Adam
I have the following datagrid:
<asp:GridView ID="gv" AutoGenerateColumns="False" DataKeyNames="ID"
runat="server">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID:" />
<asp:CommandField ShowDeleteButton="true" />
</Columns>
</asp:GridView>
What i want to acheive is attach a onclick javascript event on the delete
button generated in the Grid.
Can anyone give me an idea of how to do this in 2.0?
Would i use the OnRowDataBound event?
How would i access the button in each row via code?
Cheers,
Adam