Net gridview rowupdating event

Rated 3.94/5 based on 947 customer reviews

Find Control("lbl Project Status"), Label) Try If In Str(lbl Text.

It'd be great if you could provide some sample code here. I am using the Row Updating event to programmatically update my database, but the new values are already gone by the time the Row Updating event is fired. I have found several forum postings detailing this but no one has posted their solution. Another way to get values out of the gridview is to put the interesting fields in Data Key Names, which can be a very ugly solution because the viewstate grows as a result of this.

or if things get to technical create a new thread and post the question. Bill, are you talking exclusively about using datasources?

If you have questions on how to convert boundfields to template fields you can always just search forums or just google it...

I know its very annoying and hard to get the data out of the data controls (gridview in this case), but there are other things you can do to make it easier.

The reason is we don't fill the values unless your are bound to a datasource control.

Leave a Reply