GridView nested in DataList - refreshing corresponding DataList row after updating GridView row

Discussion in 'ASP .Net' started by H5N1, Apr 27, 2006.

  1. H5N1

    H5N1 Guest

    Hi there

    My problem is that in when I update GridView row, which is nested into
    DataList control, I want to refresh also DataList in which the GridView
    is nested, since after update, trigger in my DB changes some value in
    it (some Total sum from the GridView column).

    The GridView, along with its ObjectDataSource is inserted into DataList
    ItemTemplate.

    How, and where shoul the DataList be refreshed?

    I've tried DataListControlName.DataBind() in page.load, but I get the
    following error:

    The ObjectDataSource control 'the name of the GridView datasourced
    (located in the DataList Item Template)' does not have a naming
    container. Ensure that the control is added to the page before calling
    DataBind.

    thanks a lot
    HP
     
    H5N1, Apr 27, 2006
    #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. Harlan Messinger

    Self-refreshing and non-self-refreshing controls

    Harlan Messinger, Aug 4, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    477
    =?Utf-8?B?Y2xpY2tvbg==?=
    Aug 4, 2006
  2. SAL
    Replies:
    2
    Views:
    753
  3. news.rcn.com
    Replies:
    2
    Views:
    1,161
    Roedy Green
    Dec 10, 2007
  4. D
    Replies:
    0
    Views:
    239
  5. Harlan Messinger

    Self-refreshing and non-self-refreshing controls

    Harlan Messinger, Aug 3, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    205
    Harlan Messinger
    Aug 3, 2006
Loading...

Share This Page