try this, for web applications..
<asp:gridview id="GrdView" runat="server" xmlns:asp="#unknown">
<columns>
<itemtemplate>
<asp:linkbutton id="lnkbtn" runat="server" text="Update" commandname="Update"></asp:linkbutton>
</itemtemplate>
</columns>
</asp:gridview>
On Row Update event
Protected void GrdView_RowUpdating(Object sender,GridViewRowEventArgs e)
{
}
hope it helps..