help !!!! databinding with text box

  • Thread starter Thread starter Marc R.
  • Start date Start date
M

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 :)
 
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
 
Cor Ligthert said:
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
 
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.
 
Back
Top