Gridview rowupdating code in c
It will not find it, you need to be more specific than that.A very important note, in order to get the control in the Edit Item Template, then the Grid View must be in Edit mode.when i use smart tag, upon loadng of the page, it queries all data in the db and show it to the page i don't want that to happen.
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.Entry, (SELECT avg(rating) FROM tb_comments WHERE " _ & "tb_comments.entry=tb_entity.id) as Rating, tb_kind. Info " _ & "FROM tb_entity INNER JOIN tb_hijack ON tb_= tb_hijack. Kind = tb_" _ & "WHERE tb_entity.entry='" & strline.Replace("'", "''") & "'" Else SQL = SQL & " OR tb_entity.entry='" & strline.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.I need to get the control (dropdownlist and textbox) on these columns so that I could get their values to update SQL DB. Whois FROM tb_entity INNER JOIN tb_comments ON tb_= tb_comments. I think you're referring to Item template here.