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

H

H5N1

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
 

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
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top