Access to Container.DataItem From Custom Templated Control within DataGrid Template

E

Earl Teigrob

I have created a templated custom control that simply creates a spacing
table around other objects. This control works fine for most uses but when I
add it inside the ItemTemplate of a DataGrid Control, Container.DataItem of
the DataGrid control can no longer be access from within the template of my
custom control.

Is there a way to qualify the Container.DataItem object or some other method
for me to access it from within my templated control?

Thanks for your help

Earl
 

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

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top