ASPxGridView – Add ‘New’ button somewhere other than the detail row - Peter's Software House

ASPxGridView – Add ‘New’ button somewhere other than the detail row

Give your ASPxGridView a ClientInstanceName.  I selected ‘grid’ in this sample:

ClientInstanceName="grid"

Now place a button control (I used the ASPxButton) somewhere like the StatusBar:

<StatusBar>
    <dxe:ASPxButton ID="ASPxButton1" runat="server" Text="New" AutoPostBack="False" ClientSideEvents-Click="function(s, e) { grid.AddNewRow(); }">
    </dxe:ASPxButton>
</StatusBar>
Published Friday, March 06, 2009 11:00 PM by Pieter
Filed under: , ,

Comments

# re: ASPxGridView – Add ‘New’ button somewhere other than the detail row

Muito bom, obrigado.

Tuesday, April 14, 2009 12:24 PM by Ricardo

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: