Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Bind ArrayList of structures to DataGrid

Thread Tools

Bind ArrayList of structures to DataGrid

Posts: n/a

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


Reply With Quote

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
structures, structures and more structures (questions about nestedstructures) Alfonso Morra C Programming 11 09-24-2005 07:42 PM
Bind an ArrayList to a DataGrid Wayne Wengert ASP .Net Web Controls 1 05-14-2004 03:29 AM
a class inherited from ArrayList, is saved to ViewState, why the type of the object read from ViewSate is not the class, but the parent, ArrayList leal ting ASP .Net 1 02-10-2004 07:45 PM
writeObject with ArrayList of ArrayList? Kaidi Java 4 01-03-2004 08:16 PM
Iterate through ArrayList using an another ArrayList Saravanan Rathinavelu ASP .Net 3 08-19-2003 07:03 AM