design-time datagrid template column with findcontrol capability

G

Guest

i am thinking that creating datagrid at design time will save me a lot of
time when creating programs. however, i ran into a brick wall.

i created a template column at design time. i learned that i have to use
itemplate interface to bind my custom data. within the itemplate column, it
displays my custom data properly everything works. except that i cannot use
the datagridcommandeventargs.item.findcontrol("//asp:label within datagrid")
with a buttoncolumn which i use a lot with runtime datagrid. again, the data
from templatecolumn displays and the buttoncolumn works. the buttoncolumn
reacts but it just can't pickup the data from the datagridcommandeventargs.

i have used a literal control that basically writes the following code
within the iTemplate interface:

literalcontrol.text = "<asp:label id='lbl1'
text='....dataitem...'>...dataitem...</asp:label>";

any ideas on how to achieve findcontrol-like technique to reference the data
within the active row? it doesn't have to be findcontrol as long as i can
get the data within the selected row.

thanks in advance,
bg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top