How to Make Classes Data-Aware, Is it Possible?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi anyone. I want to make a class data-aware so i can just set my grid's
datasource property to my object. i have an object with a list of other
objects and at the moment i'm using serialization to convert my object to xml
and then a dataset, i want to use a Datatable but i keep on getting
"datatable does not support schema inference" error.

If not possible can you perhaps tell me if there is an easier, faster and
more effective way of getting an object to behave like a datasource,m
example: Object->XML->DataTable/DataSource->XML->Object

Thank you very much
Regards
 
..Net 1.0, 1.1
look into implementing the ITypedList or the IBindingList interfaces

..Net 2.0
You can also use generics...
List<MyObject>

The public properties are those made visible to grid

Tigger
 
Back
Top