locked
GridView Edit Problem RRS feed

  • Question

  • User1596751078 posted

    I have a GridView that is populated based on the selections of multiple dropdown menues.  I can Edit, Update and Cancel fine.  The problem lies in what appears to be a bug in the GridView Edit control.  If you click Edit, then change the dropdown selections without Updating or Canceling the Edit, the GridView will update with new data based on the selections and the row will remain in Edit on the same row, but with the new data values.  At this point the customer could potentially edit the wrong record.  How can I cancel the GridView edit on GridView.Databind()

    Monday, September 10, 2007 5:32 PM

Answers

  • User-1686683459 posted

    this one looks like this:

    MyGridView.EditIndex = -1;

    HTH,

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 10, 2007 5:55 PM

All replies

  • User-1686683459 posted

    this one looks like this:

    MyGridView.EditIndex = -1;

    HTH,

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 10, 2007 5:55 PM
  • User1596751078 posted

    You totally rock! 

    Monday, September 10, 2007 6:06 PM
  • User-1686683459 posted

    Glad to help.

    Tuesday, September 11, 2007 12:48 PM