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.This post has been edited by jpcsmit: 20 January 2010 - PM @eclipsed4utoo: Then you have not truly delved into Grid Views, grasshopper.
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.In order to get to the Edit Item Template, you need to first create a Template Field column.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.This example has the paging functionality enabled for the Grid View control and sets the Command Argument property of the Button control to the appropriate row index.
The Row Command event is raised when a button is clicked in the Grid View control.
Otherwise you will just get the control in the Item Template.
I am a little confused as to why you are programmatically querying and updating data when you are obviously using an Sql Data Source.
if you have an alternative solution to this one then i'm all ears.
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.
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.