Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Data Binding / October 2004

Tip: Looking for answers? Try searching our database.

Databinding to a checkbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marina - 30 Sep 2004 21:10 GMT
Hi,

I have a datafield containing Y or N.  I would like to databind to the
checkbox, and tell it that Y denotes the checked state and N denotes the
unchecked state.  In fact, I would like to be able to do something like this
to arbitrary values which should denote the checked and uncheck state (i.e.
'Available' for checked and 'Unavailable' for unchecked).

Is this possible?

Thanks
Claes Bergefall - 01 Oct 2004 07:44 GMT
Check out the Parse and Format events in the Binding class

    /claes

> Hi,
>
[quoted text clipped - 7 lines]
>
> Thanks
Marina - 01 Oct 2004 16:19 GMT
Ok, thanks.  That can do the trick, though what a pain.

> Check out the Parse and Format events in the Binding class
>
[quoted text clipped - 13 lines]
> >
> > Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.