View rowupdating

Format Exception: Input string was not in a correct format.

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...

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

Six of those paramaters basically comes from the Text Box values that were entered in the page.

You could, for instance, validate any data in the Updating event and, if you find a problem, prevent the update by setting the Cancel property to True.

This works as expected and I can put a breakpoint in the Row Command event handler to see the "Event" command name.

Leave a Reply