Rowediting rowupdating

Rated 3.97/5 based on 715 customer reviews

The above piece of code will also do the same as label in Item Template and Textbox in the Edit Item Template.

By default all the boundfields will be trasferred as Textboxes in Edit Mode.

The simplest solutions for this error is : Just change the “Command Name” property of the “Edit” button from “Edit” to “Edit Row”(or something else which is relevent to you but make sure it is not “Edit”). After scratching my head for sometime I found that the words like “Edit” are reserved to invoke some built in functionality of the Grid View.

You can see the C# code below will give the row number whatever you are editing by New Edit Index property.

So Grid View will put the appropriate row into the Edit Mode by assigning row number to its Edit Index property. You can follow any responses to this entry through the RSS 2.0 feed.

So am calling the method Bind Grid Data method which is overloaded .

I came across a very interesting error while using buttons/link buttons in the Grid View for editing the Grid View rows data.

Leave a Reply