Gridview rowupdating code behind

Raheel Hussain -------------------------------- Blog: URL: -------------------------------- This posting is provided "AS IS" with no warranties, and confers no rights. i'm now in the portion where the user clicks the update.My problem is, it doesn't trigger the Grid View1_Row Updating event...Then I guess there might've been something missing in your ajax but obviously straight forward Grid View rowupdating should fire when the update button is clicked. i forgot that i also initialize the gridview elsewhere thats why eventhough it is a post back, the Row Updating event is not firring. i forgot that i also initialize the gridview elsewhere thats why eventhough it is a post back, the Row Updating event is not firring.Unfortunately on my PC ajax isn't installed otherwise I might work around with this issue. anyways, for others that will be viewing this thread, try to also visit might be of some help to you Good day to all, thanks for your help, the ! Again, thanks a lot for all the help Good day to all, thanks for your help, the ! Now you can specify the columns that you want in your Grid View.You can use both "Bound Fields" & "Template Fields" now. protected void Tests To Be Done_Row Updating(object sender, Grid View Edit Event Args e) Sql Command command Z = new Sql Command(query, my Connection); command Z. Close(); Set Patient Test Grid(Session["PATID"], e); } At my first try I had a On Row Command with the Grid View Command Event Args at the code behind.But it still throws the same exception, although I've read on a couple of sites that changing it to On Row Editing and Grid View Edit Event Args would solve the problem.

Unfortunately on my PC ajax isn't installed otherwise I might work around with this issue.

But here is a simillar post for you, with same issue.

That would help you out Raheel Hussain -------------------------------- Blog: URL: -------------------------------- This posting is provided "AS IS" with no warranties, and confers no rights.

But here is a simillar post for you, with same issue.

I currently have a gridview populated by a datatable in viewstate. I will show you the code below, but what happens when I click edit is the textbox in cell 2 becomes empty, but the text in cell 1 doesn't. New Row(); 'Store the Data Table in View State View State("Current Table") = dt Grid View2.

Leave a Reply