nested datalists

C

chris

i am attempting to nest two datalists and a repeater:

first datalist will contain employee data.
second datalist will contain multiple projects worked on by that
employee (bound by employee id).
the repeater will break down each project in the project datalist and
list out each task within that project. (bound by project id)
so format will look like this.

employee name
project 1 total hours
task 1 hours
task 2 hours
project 2 total hours
task 1 hours
task 2 hours

employee name 2
project 1 total hours
task 1 hours
task 2 hours
project 2 total hours
task 1 hours
task 2 hours
etc...

can anyone reccommend how to bind the child datalist with the employee
id from the parent? i am assuming it can be done on the parent list's
edit command, similar to binding on load for the primary list? like
this:

Sub dlstEmployeeView_EditCommand(ByVal s As Object, ByVal e As
DataListCommandEventArgs)
dlstEmployeeView.EditItemIndex = e.Item.ItemIndex
BindDataList()
BindSecondary( ? passing id here somehow ? )
End Sub


maybe i'm completely off here, but i appreciate any help that can be
given. one good thing is that there is no event bubbling neccessary
since i don't need to re-bind the parent based on any actions in the
child list. no updates or edits, just view the data or cancel to close
that list.
 

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

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top