Ticket T618940
Visible to All Users

ASPxGridView - Batch Editing - How to use EditItemTemplate

created 7 years ago

Hi,
I'm working with a inline editing gridview.
I cant get the TextBox txtEventValue to keep the value when I click to edit the value, it always disappears

ASPx
<dx:ASPxGridView ID="gvEvents" runat="server" KeyFieldName="Code" EnableRowsCache="false" Width="100%"> <Columns> <dx:GridViewDataColumn FieldName="Code" Caption="Events" EditFormSettings-Visible="False"/> <dx:GridViewDataColumn Caption="Value" FieldName="EventValue"> <EditItemTemplate> <dx:ASPxTextBox ID="txtEventValue" runat="server" Text='<%#Bind("[EventValue]") %>' ></dx:ASPxTextBox> </EditItemTemplate> </dx:GridViewDataColumn> </Columns> <SettingsEditing Mode="Batch"> <BatchEditSettings StartEditAction="DblClick" /> </SettingsEditing> </dx:ASPxGridView>

Thank you.

Comments (1)
VC VC
Vitor Correia 1973 7 years ago

    Here is a video

    Answers approved by DevExpress Support

    created 7 years ago

    Hello,

    I see that you are using the Batch edit mode. I would like to note that, in this mode, editing is performed on the client side. Thus, it is impossible to use the server side Eval and Bind methods. Please refer to the ASPxGridView - Batch Editing - A simple implementation of an EditItemTemplate example illustrating how to use EditItemTemplate in this mode.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.