views:

36

answers:

1

Hi,

I'm a Java developer wich is just starting to learn .net. When coding my user interfaces with Java we can count with the TableModel interface wich makes the process of representing objects in data tables something really easy.

In .net what is the equivalent? I don´t want to show data which is stored on databases, but the tabular representation of the attributes of a group of objects. How can I do that on .net DataGridView class? Is there an equivalent?

+2  A: 

I think you are looking for the DataTable class. It does not have to be connected to a database in order to be populated.

Check out the other classes in the System.Data namespace, as there might be something that will suit your needs even better (the DataSet class which can contain many DataTables and even add some referential integrity between them).

Oded