Gridview rowupdating error handling

Posted by / 09-Feb-2021 15:25

The exact situation I faced is like this – I have a Grid View with a column which contains an edit button.

The button is associated with the Command Name property as “Edit”.

So when we change the Command Name property of the buttons to some other text then it will work fine.

I'm creating a small web tool for some internal folks at my workplace.

Visual Studio allows developers to quickly put together a Web Forms page simply using drag and drop options from the Visual Studio editor.

Binding form controls is mostly a simple matter of attaching a Data Source and setting your controls to reference the correct field in the Data Source.

The Grid View is associated with the On Row Command event.

Then in the code behind I have handled the On Row Command event.

gridview rowupdating error handling-53gridview rowupdating error handling-9gridview rowupdating error handling-13

I found that simple data binding of my Drop Down List in my Grid View to my Sql Data Source was not going to be enough.