Gridview rowupdating event code
In order to get to the Edit Item Template, you need to first create a Template Field column.
Replace("'", "''") & "'" Else SQL = SQL & " OR tb_entity.entry='" & strline.
Replace("'", "''") & "'" End If End If Also if i use that, then upon loading of the page, it executes the SELECT command w/c gets all the data from the sql db. user either input strings or upload a text file with strings to parse. page would read the strings from either text box or text file then do a SELECT FROM from the sql db what i would like is upon loading, it wouldn't query the sql db.
Remember that my first column was a Hyper Link Field, so in order to pull that value, I must cast that column as a Hyper Link.
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.
Using Template Fields in the Grid View Control eclipsed4utoo was on the right track, as far as how to get to the controls. But since the controls are buried in a Template Field, you cannot just do a find control on the Row.
A very important note, in order to get the control in the Edit Item Template, then the Grid View must be in Edit mode.Otherwise you will just get the control in the Item Template.
This was my first foray into this part of the Grid View’s functionality, since I haven’t really had to develop anything using it since the switch to 2.0, as everything in Data Grids still functioned fine. The Row Updating event is where it gets tricky, since pulling values is not necessarily intuitive. That’s where you come in 🙂 If you’re interested in joining the discussion to post your own problems, fixes, etc.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. i've already used find control and it's not finding it.the reason behind why i can't use the smart tag is because upon loading of the page, it would accept strings or text file to parse then from there, it would query the sql db.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.it would be alot easier for me if i'll be using smart tag. @eclipsed4utoo: Then you have not truly delved into Grid Views, grasshopper.