Binding text boxes

  • Thread starter Thread starter Sofi
  • Start date Start date
S

Sofi

Hi all!

This works well on my desktop:
textBox1.DataBindings.Add("Text", myDataSet.Tables["object"],
"object_object-property.id");
But fires an ArgumentException error on the iPAC...

Is it true that it is not possible to use "relationname.columnname" as
data member string when adding a databinding to a text box?
(I got this from: http://www.srtsolutions.com/public/...te&style=user/myst/srt-corporate&scheme=green)
And if that is the case, does it explain the above?

Many Thanks,
Sofi
 
Yes, that's not supported on CF V1.
You can't have dots in dataMember, does not matter if you're binding to
TextBox or DataGrid or whatever.
Workaround is to bind to 'id' column on related table instead and move
position manually as needed.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 
Thank you for replying!

Do you know if CF V2 supports the issue?

The workaround would work but I find it quite complicated because I'm
managing a typed dataset generated from a XML-file.

Even better regards,
Sofi


Yes, that's not supported on CF V1.
You can't have dots in dataMember, does not matter if you're binding to
TextBox or DataGrid or whatever.
Workaround is to bind to 'id' column on related table instead and move
position manually as needed.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: (e-mail address removed) (Sofi)
Newsgroups: microsoft.public.dotnet.framework.compactframework
Subject: Binding text boxes
Date: 20 Apr 2005 09:26:42 -0700
Organization: http://groups.google.com
Lines: 17
Message-ID: <[email protected]>
NNTP-Posting-Host: 193.10.40.128
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1114014402 7501 127.0.0.1 (20 Apr 2005 16:26:42 GMT)
X-Complaints-To: (e-mail address removed)
NNTP-Posting-Date: Wed, 20 Apr 2005 16:26:42 +0000 (UTC)
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP
08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news.glorb.com!postnews.go
ogle.com!not-for-mail
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.compactframework:75948
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Hi all!

This works well on my desktop:
textBox1.DataBindings.Add("Text", myDataSet.Tables["object"],
"object_object-property.id");
But fires an ArgumentException error on the iPAC...

Is it true that it is not possible to use "relationname.columnname" as
data member string when adding a databinding to a text box?
(I got this from: http://www.srtsolutions.com/public/item/21260?model=user/myst/user-srt-corpo
rate&style=user/myst/srt-corporate&scheme=green)
And if that is the case, does it explain the above?

Many Thanks,
Sofi
 
Yes, CF V2 supports it.

Note typed DataSets are not supported on CF V1.
If you meant to say "untyped DataSet with schema loaded from file" this
workaround is not that complicated.
I would estimate it as 5-6 lines of code.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: (e-mail address removed) (Sofi)
Newsgroups: microsoft.public.dotnet.framework.compactframework
Subject: Re: Binding text boxes
Date: 21 Apr 2005 02:37:12 -0700
Organization: http://groups.google.com
Lines: 67
Message-ID: <[email protected]>
References: <[email protected]>
NNTP-Posting-Host: 193.10.40.128
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1114076233 26632 127.0.0.1 (21 Apr 2005 09:37:13 GMT)
X-Complaints-To: (e-mail address removed)
NNTP-Posting-Date: Thu, 21 Apr 2005 09:37:13 +0000 (UTC)
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!news.glorb.com!postnews.google.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.compactframework:27479
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Thank you for replying!

Do you know if CF V2 supports the issue?

The workaround would work but I find it quite complicated because I'm
managing a typed dataset generated from a XML-file.

Even better regards,
Sofi


(e-mail address removed) ("Ilya Tumanov [MS]") wrote in message
Yes, that's not supported on CF V1.
You can't have dots in dataMember, does not matter if you're binding to
TextBox or DataGrid or whatever.
Workaround is to bind to 'id' column on related table instead and move
position manually as needed.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: (e-mail address removed) (Sofi)
Newsgroups: microsoft.public.dotnet.framework.compactframework
Subject: Binding text boxes
Date: 20 Apr 2005 09:26:42 -0700
Organization: http://groups.google.com
Lines: 17
Message-ID: <[email protected]>
NNTP-Posting-Host: 193.10.40.128
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1114014402 7501 127.0.0.1 (20 Apr 2005 16:26:42 GMT)
X-Complaints-To: (e-mail address removed)
NNTP-Posting-Date: Wed, 20 Apr 2005 16:26:42 +0000 (UTC)
Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP
08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news.glorb.com!postnews.go
ogle.com!not-for-mail
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.compactframework:75948
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Hi all!

This works well on my desktop:
textBox1.DataBindings.Add("Text", myDataSet.Tables["object"],
"object_object-property.id");
But fires an ArgumentException error on the iPAC...

Is it true that it is not possible to use "relationname.columnname" as
data member string when adding a databinding to a text box?
(I got this from:
http://www.srtsolutions.com/public/item/21260?model=user/myst/user-srt-corpo
rate&style=user/myst/srt-corporate&scheme=green)
And if that is the case, does it explain the above?

Many Thanks,
Sofi
 
Back
Top