all groups > dotnet windows forms databinding > april 2007 >
You're in the

dotnet windows forms databinding

group:

Databinding radiobuttons


Databinding radiobuttons Johnny E. Jensen
4/6/2007 12:00:00 AM
dotnet windows forms databinding:
Hey

On a form (frmUsers) with a lot of controls (textboxes only) everything
works. on my bindingnavigator i can add, delete and save.
Now i create a groupbox and places 3 radiobuttons and places this on the
form. I bind each radiobutton to respective fields within the
database.(IsMaster, IsSuper and IsUser). Each field has defalut value
IsMaster=0, IsSuper=0 and IsUser=1. it has the datatype BIT.

I've set the DataSourceUpdateMode to OnPropertyChange;

But now i can't addnew, save or delete any more?

Is there some other things to consider when using radiobuttins?

Kind regards
Johnny E. Jensen

Re: Databinding radiobuttons Bryan Phillips
4/8/2007 10:19:20 PM
Try taking out your change to the DataSourceUpdateMode. I recreated
your scenario using a DataSet, BindingSource and BindingNavigator and
was able to add, save and delete, but I did not change the
DataSourceUpdateMode.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
Web Site: http://www.composablesystems.net



[quoted text, click to view]
AddThis Social Bookmark Button