Start Rowupdating code behind

Rowupdating code behind

Replace("'", "''") & "'" Else SQL = SQL & " OR tb_entity.entry='" & strline.

I am a little confused as to why you are programmatically querying and updating data when you are obviously using an Sql Data Source.

Why not just let the Sql Data Source handle the update?

Also, the fourth column is already a template field.

This post has been edited by jpcsmit: 20 January 2010 - PM @eclipsed4utoo: Then you have not truly delved into Grid Views, grasshopper.

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.

“Select” – Raises the Selected Index Changing and Selected Index Changed events. “Update” – Raises the Row Updating and Row Updated events.

I have a gridview with template field on column 2 and 4. i've also used msgbox to output all column four's control ID and it's returning nothing.

Then in the code behind I have handled the On Row Command event.

In the event handler function I have checked for the Command Name property and write necessary code for each of the actions.

Is there any way to get controls of the edit template? Here's my source code: " Select Command="SELECT tb_entity. that's why i don't know how to go about it.