Gridview onrowupdating not

“Select” – Raises the Selected Index Changing and Selected Index Changed events. “Update” – Raises the Row Updating and Row Updated events.The HTML code for the Grid View is as follow : The event handling code for the Row Command event is as follow: protected void gd Test_Row Command(object source, Grid View Command Event Args e) { if (e. Trim() == "Edit") { //Code for the editing } } Till now everything looks fine but the problem arises when you run this application.



As our code does not handle those events hence they throw an exception.So when we change the Command Name property of the buttons to some other text then it will work fine.


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>