Groups | Blog | Home
all groups > asp.net building controls > july 2005 >

asp.net building controls : Accessing User Control inside Datagrid


mirlisa
7/1/2005 7:21:00 AM
I've created a simple user control (dynamically populated dropdown list
via database) and dynamically added it to a datagrid. There are 9
instances of this control in the datagrid.

My problem is accessing the control itself. I need to be able to loop
through all nine to get the selected values.

When I dynamically create the control, I give it a unique id, but I
notice that when I view source the id is totally different from the id
I gave it.

So the question is: how do I access a user control dynamically added to
a datagrid? Any help is appreciated.

Thanks.
Mirlisa
AddThis Social Bookmark Button