Will,
The DataGrid can connect to anything that implements IList. Each row
will be whatever is served up by the IList interface. The grid uses
reflection to get the columns. However, if the type implements ITypedList
(like the DataView does), then it will query the members of that interface
to get the columns.
Also, the DataSet class (and DataTable, etc, etc classes) are not
connected to a database. You can create them and populate them as you wish,
without a database connection, and then pass this to the grid for binding.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Will" <de*@rusmo.com> wrote in message
news:je********************@giganews.com...
I've got a simple form that collects data from a user and I want to
display that data in a sortable grid or table. The nature of this data is rather
temporary, so there's no need to persist it to a database. Searching
through the Framework documentation, everything I've seen reggarding a grids and
tables seems to require a connection to a database. My guess is I'm just
missing something. What classes can I use to display sortable data in a
grid or table that don't require a DB connection?
Thanks in advance,
Will.