Start Asp net gridview onrowupdating example

Asp net gridview onrowupdating example

You can monitor commits to the repository from this page.

Next event is the Grid View Row Editing event to give ASP. You need to set the Edit Index property of the Grid View with the New Edit Index property of the Grid View Edit Event Args class.

If user clicks the Cancel button while Grid View is in editing mode, you need to Cancel the Editing process and also need to reset the Edit Index property to -1 in the Row Canceling Edit event of the Grid View control as shown below: The last step is to handle the Row Updating event to actually update the back end database.

By Default, Grid View control displays Item Template which directly shows the Product Name and Unit Price columns but when user clicks Edit button Grid View automatically switches to Edit Item Template and display the control available inside Edit Item Template for user editing.

Now I will show you the C# code behind file of the above ASP.

Before posting questions here you might want to review the developer documentation. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum.

If you are a developer or designer looking for mojo Portal related work, you can also post here to let people know that you are available for mojo Portal development or design/skinning consulting.