|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
help !!!! databinding with text boxhi all,¸
went I use vs IDE to add a binding to a txtbox ¸I get that error messages : "cannot call AddNew on a dataview where Allownew is false." but if I add manually (wich is very to long for the type of application I do) it pass and work... any clues anyone ? Marc R. Thanks a lot to help a wanna be professional :) Marc,
That is one of the not good implemented things in VS2003. If you want to add a new row where the defaultview is set to allownew is true, than you have first to set that allownet to false, add the row and set it in the next program row back to true. (In Version 2005 the allownew is replaced to the datagridview). I hope that helps, Cor
Show quote
Hide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message I Guest I didn't explain myself correctly,news:uhglrpaGGHA.1312@TK2MSFTNGP09.phx.gbl... > Marc, > > That is one of the not good implemented things in VS2003. > > If you want to add a new row where the defaultview is set to allownew is > true, than you have first to set that allownet to false, add the row and > set it in the next program row back to true. (In Version 2005 the allownew > is replaced to the datagridview). > > I hope that helps, > > Cor > into Vs2003's, I got a form build with a textbox, when I tried to use this textbox's properties window to add the binding, as soon I tried to select the datasource I receive that message. Thanks Cor It did help :
here's what I did to fix : I had 1 Dataview that was not allowed to add new or edit, went I put it back to allownew = true the proporties window worked. Show quoteHide quote "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:uhglrpaGGHA.1312@TK2MSFTNGP09.phx.gbl... > Marc, > > That is one of the not good implemented things in VS2003. > > If you want to add a new row where the defaultview is set to allownew is > true, than you have first to set that allownet to false, add the row and > set it in the next program row back to true. (In Version 2005 the allownew > is replaced to the datagridview). > > I hope that helps, > > Cor > |
|||||||||||||||||||||||