Hi
Try to Modify your
btnAddNew to be inside your grid column.
Example client code:
<FooterTemplate>
<asp:Button ID="btnAddNew" runat="server" Text="Add New" CommandName="AddNew" CommandArgument="AddNew"
OnClick="btnAddNew_Click" OnClientClick="return confirm('Add new Record?');" />
</FooterTemplate>
Then handle the click event in your code behind should contains your logic...
Hope this could help.
Regards,
Algem