Grid Population

Posted on 2004-11-01
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.
Question by:rocky050371
    1 Comment
    LVL 28

    Accepted Solution

    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)


    dg.DAtasource = dt


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    933 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now