Binding to Custom Classes

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

Guest

In my application I have custom classes that are container classes. For two
of my container classes I need to bind them to a datagrid to show the user.
What is the best way to do this?

Thanks
 
Hi, Kevin,

Are you on a web or windows environment?
Is the custom class to be binded to a class that implement IList ? ( Like a
strong typed collection )

If you give us more details I can give you code sniplets.


Cheers,
 
Thanks for the posts. Currently my custom classes does not implement IList
or any other interfaces. Earlier in my design, I decided to use custom
classes versus typed datasets because of performance reasons and easy of
maintenance. At that point there was no need for databinding. However,
there is a design change and there is a need to bind the data to a datagrid.
The custom classes were designed to be simple container classes (with CRUD)
for user input that will be persisted to a MSDE DB. I am toying with the
idea of maybe going back to the idea of typed datasets. Like I said above I
just need simple CRUD operations including the ability to persist, retrieve
and update. Any suggestions would be great!

Thanks
 
Back
Top