Is e.Item.DataItem (DataRow) available on postback??

Discussion in 'ASP .Net Datagrid Control' started by David Adams, Oct 13, 2003.

  1. David Adams

    David Adams Guest

    Hi,

    I'm having trouble accessing e.Item.DataItem on postback, specifically in
    the ItemCommand event. e.Item.DataItem is returned as null. I have the
    viewstate set to true and I can access e.Item.DataItem in the ItemDataBound
    event. All of the data I need is in the grid to begin with, so I would like
    to avoid going back to the database to retrieve what is already there!

    Any ideas or suggestions?

    Thanks,
    David Adams
     
    David Adams, Oct 13, 2003
    #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. Kel Good
    Replies:
    2
    Views:
    13,294
    Kel Good
    Apr 25, 2004
  2. MattB
    Replies:
    4
    Views:
    21,584
  3. Ali M
    Replies:
    2
    Views:
    6,790
    Ali M
    Feb 15, 2005
  4. GaryDean

    DataRow.Item

    GaryDean, Aug 29, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    7,678
    Walter Wang [MSFT]
    Aug 29, 2006
  5. Dave Adams

    Repeater e.item.dataitem null on postback

    Dave Adams, Oct 13, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    505
    Dave Adams
    Oct 13, 2003
Loading...

Share This Page