Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Load DataGrid in DataList programatically?

Reply
Thread Tools

Load DataGrid in DataList programatically?

 
 
DotNetJunkies User
Guest
Posts: n/a
 
      10-11-2004
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

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
 
Reply With Quote
 
 
 
 
Hermit Dave
Guest
Posts: n/a
 
      10-11-2004
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)
"DotNetJunkies User" <User@-NOSPAM-DotNetJunkies.com> wrote in message
news:...
> 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
>
> ---
> Posted using Wimdows.net NntpNews Component -
>
> Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup
> engine supports Post Alerts, Ratings, and Searching.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Entering DataList EditItemTemplate from Outside of the DataList Luis Esteban Valencia ASP .Net 1 01-06-2005 07:32 PM
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll ASP .Net 8 09-09-2004 10:13 PM
Click event in a datalist to post back datalist properties Steve Lloyd ASP .Net 1 05-26-2004 04:07 AM
DataList in DataList acko bogicevic ASP .Net 2 11-11-2003 08:31 AM
Datalist in Datalist How? Gönen EREN ASP .Net 0 08-22-2003 02:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57