Bind ArrayList of structures to DataGrid

Discussion in 'ASP .Net Web Controls' started by Borr, Nov 13, 2003.

  1. Borr

    Borr Guest

    Hi,

    I am using DataGrid for first time now, and my data source
    is an ArrayList. Every element of the ArrayList is a
    struct that contains several members. I want to display
    this ArrayList in my DataGrid in a very simple way : every
    struct is a row, every member of the struct is a cell.

    I looked through MSDN, but I found just how to bind
    ArrayList of STRINGS. However elements of my ArrayList are
    structs, not strings. Is there any way to do it and how to
    define accordance between DataGrid columns and struct
    members ?

    Thank you in advance

    Best regards

    Borr
     
    Borr, Nov 13, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Saravanan Rathinavelu

    Iterate through ArrayList using an another ArrayList

    Saravanan Rathinavelu, Aug 16, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    3,057
    Natty Gur
    Aug 19, 2003
  2. =?Utf-8?B?Sm9l?=

    Casting ArrayList entries as different structures

    =?Utf-8?B?Sm9l?=, Nov 28, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,767
    cbDevelopment
    Dec 4, 2005
  3. mosscliffe

    ArrayList and Structures VB.NET

    mosscliffe, Apr 13, 2006, in forum: ASP .Net
    Replies:
    6
    Views:
    74,026
    Timwaterbury1
    Nov 14, 2011
  4. Kaidi
    Replies:
    4
    Views:
    3,078
    Kaidi
    Jan 3, 2004
  5. Alfonso Morra
    Replies:
    11
    Views:
    1,005
    Emmanuel Delahaye
    Sep 24, 2005
  6. xz
    Replies:
    16
    Views:
    2,722
  7. Philipp
    Replies:
    6
    Views:
    1,258
    Arne Vajhøj
    May 28, 2008
  8. Wayne  Wengert

    Bind an ArrayList to a DataGrid

    Wayne Wengert, May 14, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    164
    Ken Cox [Microsoft MVP]
    May 14, 2004
Loading...