I want to customize the add new button, centering it on the grid but also having the same functionality as the normal built in Add New button.
Here is the code I have so far:
<CommandItemSettings ShowAddNewRecordButton="False" />
<CommandItemSettings ShowRefreshButton="false" />
<CommandItemTemplate>
<div id="divCenter" style="text-align: center">
<asp:LinkButton ID="btnAddNew" Text="Add New" CommandName="Insert" runat="server"></asp:LinkButton>
</div>
</CommandItemTemplate>
The problem is the Insert command only makes the screen flash and doesn't open the Add New dialog.
Can you help?