Gridview rowupdating event not
I'm programmatically querying the db and i'm not using the smart tag of the gridview. Yes, i could see the controls in item template, but not in edititemtemplate.
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.
Most of what I have read online says I need to add Data Bind() to the Page_Load under Is Post Back, but this doesn't change anything.
I'm wondering if it has to do with a dropdown I have that "activates" the gridview.
Find Control("txt Name2"), Text Box) txtname3 = CType(row. Text & "')", con) da = New My Sql Data Adapter(cmd) cmd.
Using Template Fields in the Grid View Control Yes there is, but that's a Bound Field, which means the user can't change the value in the Grid View.
Find Control("txt Name"), Text Box) txt Name1 = CType(row.
To String) End Try End Sub If txt Name Is Not Nothing Then 'txt Name was successfully retrieved..is not nothing 'you can use it without experiencing a Null Reference Exception Else 'something went wrong and txt Name does not exist End If Are you sure that the IDs of the Text Boxes are correct?
it would only do a query once user enters strings to textbox or enters text file to parse. Also, i already did the msgbox() to output controls in gridview in row updating event to make sure the gridview is in edititemtemplate (or so i think it is) and didn't show any control id.
Also, the fourth column is already a template field.
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.