Binding CheckBox control to a datasource

Last post 02-21-2008 6:55 AM by XIII. 3 replies.

Sort Posts:

  • Binding CheckBox control to a datasource

    02-21-2008, 4:46 AM
    • Loading...
    • SakshiJain
    • Joined on 02-21-2008, 9:40 AM
    • Posts 2

    hi

    I want to have something (datatype/interface../class) which can accept any kind of data e.g (datatable,dataset,datareader,dataview...) and i shuld be able to bind that with the checkbox list

     

     

    Filed under: ,
  • Re: Binding CheckBox control to a datasource

    02-21-2008, 5:54 AM
    • Loading...
    • XIII
    • Joined on 06-30-2002, 11:59 PM
    • Essen, Belgium
    • Posts 9,823
    • Moderator
      TrustedFriends-MVPs

    IEnumerable interface or one of its decendants.

    Grz, Kris. 

    Read my blog | Members are volunteers so please keep out the (it's urgent | asap | reply me directly) stuff. Nobody's interested in that.
  • Re: Binding CheckBox control to a datasource

    02-21-2008, 6:52 AM
    • Loading...
    • SakshiJain
    • Joined on 02-21-2008, 9:40 AM
    • Posts 2

    HI

    can u plz elaborate on this

  • Re: Binding CheckBox control to a datasource

    02-21-2008, 6:55 AM
    Answer
    • Loading...
    • XIII
    • Joined on 06-30-2002, 11:59 PM
    • Essen, Belgium
    • Posts 9,823
    • Moderator
      TrustedFriends-MVPs

    Well if you take a look at what a datatable or so implements, which you can use to bind to a checkboxlist, they implement IEnumerable or one of its decendants so if you want to create something specifically you can also use that same interface to build upon.

    Grz, Kris. 

    Read my blog | Members are volunteers so please keep out the (it's urgent | asap | reply me directly) stuff. Nobody's interested in that.
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter