DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 25 Jul 2007 16:24:07 -0400,    posted on: microsoft.public.dotnet.framework.windowsforms.databinding        back       

Thread Index
  1    Steve D.
          2    Steve D.


Radio Button and DataSourceUpdateMode   
I have three radio buttons in a group on a form.

I bind these to three boolean properties of a business object.This binding 
changes the behavior of the buttons.

Let's say button1 is selected. When I click one time on button2, then 
button1 is unselected. I then must click a second time on button2 before is 
shows as selected. Note that one click is sufficent when there is no binding 
in place.

I can change the behavior by changing the DataSourceUpdateMode to 
"OnValidation." However, for other reasons on the form, I need to have this 
set to "OnPropertyChange."

I see this as an error. Any advice on getting around this would be 
appreciated.

Thanks,
Steve
Date:Wed, 25 Jul 2007 16:24:07 -0400   Author:  

Re: Radio Button and DataSourceUpdateMode   
I implemented a hack to solve this. In the MouseDown event I set 'Checked' 
to true. Pretty silly but it seems to work in preliminary testing. However, 
it violates a principle I am trying to live by where there is as close to 
zero code in the UI as possible. I still think this is bug.

Steve


"Steve D."  wrote in message 
news:ON$SBnvzHHA.1100@TK2MSFTNGP06.phx.gbl...

>I have three radio buttons in a group on a form.
>
> I bind these to three boolean properties of a business object.This binding 
> changes the behavior of the buttons.
>
> Let's say button1 is selected. When I click one time on button2, then 
> button1 is unselected. I then must click a second time on button2 before 
> is shows as selected. Note that one click is sufficent when there is no 
> binding in place.
>
> I can change the behavior by changing the DataSourceUpdateMode to 
> "OnValidation." However, for other reasons on the form, I need to have 
> this set to "OnPropertyChange."
>
> I see this as an error. Any advice on getting around this would be 
> appreciated.
>
> Thanks,
> Steve
>
>
>
>
> 
Date:Thu, 26 Jul 2007 09:49:40 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us