Ticket Q473477
Visible to All Users

ASPxGridView - How to access values in TextBoxes within the grid edit form

created 12 years ago

I have set up a template within the gridview and have bound a field from the gridview to a textbox within the edit form. Through the RowUpdating event I am able to get the values of what was pulled from the DB. I would like to get the new value that the end user just entered through the edit form. I am unable to access the text box on the edit from. I have looked at your example http://demos.devexpress.com/aspxgridviewdemos/GridEditing/TwoWayBinding.aspx and still don't understand how I can get the new value within the textbox. I have attached a sample that I am working with and noted with in the .vb page where I would like to pull the new value.

Thanks
Mark

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

Hello,
Since you are using the Bind expression, the value of the textbox can be obtained in the e.NewValues property of the RowUpdating event handler.

    Comments (1)

      Thanks this worked out great!

      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.