This post has been edited by jpcsmit: 20 January 2010 - PM @eclipsed4utoo: Then you have not truly delved into Grid Views, grasshopper.
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.
For the user to be able to check the checkbox, it needs to be a Template Field.
For example: Now this does get the control that is in the Item Template, not the Edit Item Template.
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.
Otherwise you will just get the control in the Item Template.