[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Grid Population

Posted on 2004-11-01
3
Medium Priority
?
266 Views
Last Modified: 2010-05-18
I need to populate a grid from a comination of array lists (each array list is made up of business entities) that are returned from my business layer.

As far as I can see I have a few choices.

1. I can create a dataset with all the array lists and manually add the relations.   OR
2. I can set the data source of the grid to one of the array lists then populate the other fields as each row is loaded.

My question is, does anyone from experience which is the better option, there may even be a scenario I have missed.
0
Comment
Question by:rocky050371
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 28

Accepted Solution

by:
iboutchkine earned 2000 total points
ID: 12464681
I would populate a datatable from different arrays and then bind dtd to datagrid

Dim data(1) As Object 'for adding to datarow

            data(0) = arr1(0)
            data(1) = arr2(2)
            dt.Rows.Add(data)

.....
etc

dg.DAtasource = dt

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question