Home All Groups Group Topic Archive Search About

help !!!! databinding with text box

Author
15 Jan 2006 6:21 AM
Marc R.
hi 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 :)

Author
15 Jan 2006 8:05 AM
Cor Ligthert [MVP]
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
Author
15 Jan 2006 3:19 PM
Marc R.
Show quote Hide 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
>
I Guest I didn't explain myself correctly,

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
Author
15 Jan 2006 3:29 PM
Marc R.
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
>