Rowupdating gridview devexpress

by  |  05-Jan-2016 12:17

When I do an update, and get to the Grid View1_Row Updating, there is no value passed to "ID", and then when I go to the next row for "Company" I get the following error: Specified argument was out of the range of valid values. Parameter name: index Any idea what I need to do to fix this issue? It is very useful to us in practical in our collage project. Free counters Added on January 19,2012 Follow Me @vmsdurano A bit About Me Disclaimer The opinions expressed herein are my own personal opinions and does not represent the opinions of my employers. Contol[0])Text; it werk just Fine any comment and thx for the code Instead of adding a Customer ID to your table and later pulling the text to get the ID number, a more reliable way to do it is to add a Data Key Names field to the grid example in the page: You can then access this information at any time with the following in code: Grid View1. Row Index]["id"]); You can do this with any field, but I've found customers get confused when they see the ID field and kept asking me why it was there, this also eliminates any issues if you change the display order of your table later (maybe add an edit/update/cancel control) Hey...great article ;)But I got a problem... So here I go with my example:protected void Grid View1_Row Updating(object sender, Grid View Update Event Args e) and the debugger says: Exception Details: System.

rowupdating gridview devexpress-33rowupdating gridview devexpress-65

And thankful of this link.thanks, Ritesh vyas How to update a dropdownlist in the gridview?

I tried to use this: Drop Down List ddl = (Drop Down List)Grid View5.

Do you an example of ROWUPDATED that I could reference that executes a stored procedure with parmeters? ASPx Data Updated Event Args) Handles ASPx Grid View1.

' Protected Sub Grid_Row Updated(By Val sender As Object, By Val e As Dev Express.

Now let’s create a method for executing the Update or Insert.

Community Discussion