binding to objects

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rufus

    #1

    binding to objects

    Hi,
    i am relatively new to dotnet and am working on a project that requires me
    to bind to objects instead of datasets. The reason for this is that we are
    using an OR mapper to generate these custom data objects.

    I know that web controls can bind to any type of object as long as it
    implements the IEnumerable interface. I have created a custom collection
    class that inherits from HashTable. I can then bind collections to my web
    controls.

    My question is: Are certain collection classes better than others for this
    type of thing? Should I continue using HashTable or would I be better off in
    the long run manually building DataSet objects to work with?

    Thanks in advance.
  • Nishith Pathak

    #2
    RE: binding to objects

    Hi,

    It all depends upon your neccesssity. well Dataset in itself is a class and
    implements some collections . Though DataSet offers some flexible benefits
    and can be used in most of the instances. Depending on your requirement you
    can use your own custom class. Pls keep the reusability and project scope in
    your mind

    Nishith

    "rufus" wrote:
    [color=blue]
    > Hi,
    > i am relatively new to dotnet and am working on a project that requires me
    > to bind to objects instead of datasets. The reason for this is that we are
    > using an OR mapper to generate these custom data objects.
    >
    > I know that web controls can bind to any type of object as long as it
    > implements the IEnumerable interface. I have created a custom collection
    > class that inherits from HashTable. I can then bind collections to my web
    > controls.
    >
    > My question is: Are certain collection classes better than others for this
    > type of thing? Should I continue using HashTable or would I be better off in
    > the long run manually building DataSet objects to work with?
    >
    > Thanks in advance.[/color]

    Comment

    Working...