Databinding

  • Thread starter Thread starter Tim Tafflinger
  • Start date Start date
T

Tim Tafflinger

What property do I use to bind a uniqueidentifier column
to a textbox? The "text" property as in the code below
gives me an argument exception:

txtPatientStatsID.DataBindings.Add("Text",
dsPatients.Tables("tblPatientStats"), "PatientStatsID")
 
Tim,

I don't immediately see a problem with what you've written. I suspect a
problem with looking up the table in the dataset or the column in the table
but I can't tell you more without more context.

-Chris

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Tim Tafflinger" <[email protected]>
| Sender: "Tim Tafflinger" <[email protected]>
| Subject: Databinding
| Date: Fri, 3 Oct 2003 11:49:53 -0700
| Lines: 8
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOJ3yHy5CSN1vo7QaWG/W9vG/P+sQ==
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:35103
| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| What property do I use to bind a uniqueidentifier column
| to a textbox? The "text" property as in the code below
| gives me an argument exception:
|
| txtPatientStatsID.DataBindings.Add("Text",
| dsPatients.Tables("tblPatientStats"), "PatientStatsID")
|
|
|
 
Back
Top