Re: Binding to Custom Classes

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

Kevin
Date: 03/16/04


Date: Tue, 16 Mar 2004 12:31:10 -0700

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

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:OHAA1g4CEHA.576@TK2MSFTNGP11.phx.gbl...
> 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,
>
> --
> Ignacio Machin,
> ignacio.machin AT dot.state.fl.us
> Florida Department Of Transportation
>
> <Kevin> wrote in message news:e4gKmG4CEHA.2628@TK2MSFTNGP11.phx.gbl...
> > 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
> >
> >
>
>



Relevant Pages

  • Accessing Class Properties
    ... When designing a DAL, I designed the methods to return custom classes that contain properties. ... public class Employee ... private string _name; ... The requirements have since changed completely from what they were originally and I'll have to design the DAL as a web service. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: preemptive OOP?
    ... design like my second example when you aren't even sure you will need ... I know it won't hurt, and is probably smart to do sometimes, but ... own custom classes if they provide no additional data or behaviour. ... through the mircale of polymorphism, it will function everywhere a Notebook ...
    (comp.lang.python)
  • Re: Passing Data Between Tiers
    ... Business Entities (custom classes) ... Typed Datasets ... UI, Business, and Data Access tiers. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Help On DataBinding
    ... -Sijin Joseph ... > In my application I have custom classes that are container classes. ...
    (microsoft.public.dotnet.framework.windowsforms.databinding)
  • Binding to Custom Classes
    ... In my application I have custom classes that are container classes. ... of my container classes I need to bind them to a datagrid to show the user. ...
    (microsoft.public.dotnet.languages.csharp)