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

Discussion in 'ASP .Net' started by Earl Teigrob, Jul 7, 2004.

  1. Earl Teigrob

    Earl Teigrob Guest

    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
     
    Earl Teigrob, Jul 7, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Earl Teigrob
    Replies:
    2
    Views:
    451
    Earl Teigrob
    Jun 8, 2004
  2. RA Scheltema
    Replies:
    3
    Views:
    404
    RA Scheltema
    Jan 6, 2004
  3. Replies:
    0
    Views:
    2,234
  4. Joe Rattz
    Replies:
    2
    Views:
    601
    Robert Koritnik
    Sep 10, 2004
  5. Achim Domma (SyynX Solutions GmbH)

    cannot access container data in templated control

    Achim Domma (SyynX Solutions GmbH), Nov 12, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    118
    Achim Domma (SyynX Solutions GmbH)
    Nov 12, 2005
Loading...

Share This Page