DataBindings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a text box that I'm using to store the key to the underlying data
table. However, when I attempt to bind the text box to it's data source, I
receive an argumentexception. I have other data bindings that work perfectly
but this one text box is causing all my problems. The real kicker is this is
the key to the data source and I need it to update the data source. The
following line of code produces the argumentexception violation.

tboxOEDocId.DataBindings.Add("Text",dtPickDtl,"oe_doc_id");

NOTE: the "oe_doc_id" is a guid in the data table dtPickDtl. The other
data bindings work well but are not guids.
 
Johnny said:
I have a text box that I'm using to store the key to the underlying
data table. However, when I attempt to bind the text box to it's
data source, I receive an argumentexception. I have other data
bindings that work perfectly but this one text box is causing all my
problems. The real kicker is this is the key to the data source and
I need it to update the data source. The following line of code
produces the argumentexception violation.

tboxOEDocId.DataBindings.Add("Text",dtPickDtl,"oe_doc_id");

NOTE: the "oe_doc_id" is a guid in the data table dtPickDtl. The
other data bindings work well but are not guids.

It would be great if you also explained which argument of the 3 was
wrong according to the exception. :)

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top