Load DataGrid in DataList programatically?

D

DotNetJunkies User

Hi,

I was wondering if it is possible to load datagrid into datalist programatically using ITemplate interface with the following structure and place intp placeholder control.

PlaceHolder
- DataList
- DataGrid (DataList Item)

I have hierarchical data that I want to display using webcontrols whilst calculating minimum cost for each courier with Compute() method in DataGrid.

Country
- Courier List

Any advice or example much appreciated.


Andrew
 
H

Hermit Dave

well i have tried datagrid in datagrid and this is what i suggested in
another post yesterday

i dont see any problems using DataList as a parent and datagrid as a child.
---------------------

well you said you tried nesting !! i think that is the most appropriate
solution for Parent Child relations.

one of the columns there will be another datarid..

say dgParent has a template column which is a datagrid. dgChild.
onDataBound event... get the categoryid.. using that either fetch or filter
correct records for child and bind it to that row's dgChild.

i have done this a lot of times... infact i had a Parent >> Child >> Child
relationship and after a bit of tweaking it all worked :)

---------------------

HTH

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
 

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,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top