Databinding problem in CF - BUG?

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

Guest

Hi

I have a strange problem with text binding in CF: the following command works with no problem in forms application, while it returns AgrumentException in SD application

Me.txtCar.DataBindings.Add("Text", dsTest , "tblCar.Name"

The modified version works well in CF

Me.txtCar.DataBindings.Add("Text", dsTest.Tables("tblCar") , "Name" )

It seems to me, that any period in last argument is producing error..
Any ideas

Because of this problem I am not able to syncronize linked parent-child tables in dataset in CF application

Me.txtCar.DataBindings.Add("Text", dsTest.Tables("Parenttable"), "RelationName.ColumnName"

Again, it returns ArgumentException, while it works well in forms application

Any help would appreciated

Bostjan
 
Both are by design limitation. No periods, no relations, sorry.
You can handle relations manually by opening another form with child row(s)
data.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: Databinding problem in CF - BUG?
thread-index: AcQkqAvFVVi6n5YRTQ6lFdSR4mQiWA==
X-WN-Post: microsoft.public.dotnet.framework.compactframework
From: "=?Utf-8?B?Qm9zdGphbg==?=" <[email protected]>
Subject: Databinding problem in CF - BUG?
Date: Sat, 17 Apr 2004 11:16:04 -0700
Lines: 25
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
Path: cpmsftngxa10.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.compactframework:51206
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Hi,

I have a strange problem with text binding in CF: the following command
works with no problem in forms application, while it returns
AgrumentException in SD application:

Me.txtCar.DataBindings.Add("Text", dsTest , "tblCar.Name")

The modified version works well in CF:

Me.txtCar.DataBindings.Add("Text", dsTest.Tables("tblCar") , "Name" ).

It seems to me, that any period in last argument is producing error...
Any ideas?

Because of this problem I am not able to syncronize linked parent-child
tables in dataset in CF application:

Me.txtCar.DataBindings.Add("Text", dsTest.Tables("Parenttable"),
"RelationName.ColumnName")

Again, it returns ArgumentException, while it works well in forms
application.


Any help would appreciated,

Bostjan B
 
Both are by design limitation. No periods, no relations, sorry
You can handle relations manually by opening another form with child row(s)
data

Thank you for your response. With all this limitation in mind I have some general CF syncronization questions. The point is, how to syncronize data bound controls on the form with datatables in dataset. In forms vb or c# applications, I am choosing between Currency Manager object and DataView / DataRowView / DataRow objects in the following way: if I only manipulate dataset's rows in code I choose DataView / DataRowView / DataRow objects (a kind of mannual sync), but when I have to present data to the user interface I choose Curreny Manager to do the sync job. I got this advice years ago from David Sceppa, MS and it seems to serve well..
Concerning these limitations, can we say that using Currency Manager is an inappropriate way of handling databinding in CF? In my example, I have 3-tier object oriented ppc application with disconnected ado.net. There are many relations between tables in dataset. Let's say I have a student form with name, class and other textboxes. I also have combo box that shows teacher's name on the same form. When the user navigates between students I want teachers records to be syncronized with students (one to many relation between these tables). While the relations are not supported, I can only choose "mannual data binding" with DataRow objects..

Thank you for any comments

Bostjan


----- "Ilya Tumanov [MS]" wrote: ----

Both are by design limitation. No periods, no relations, sorry
You can handle relations manually by opening another form with child row(s)
data

Best regards

Ily

This posting is provided "AS IS" with no warranties, and confers no rights
-------------------
Thread-Topic: Databinding problem in CF - BUG
thread-index: AcQkqAvFVVi6n5YRTQ6lFdSR4mQiWA=
X-WN-Post: microsoft.public.dotnet.framework.compactframewor
From: "=?Utf-8?B?Qm9zdGphbg==?=" <[email protected]>> Subject: Databinding problem in CF - BUG
Date: Sat, 17 Apr 2004 11:16:04 -070
Lines: 2
Message-ID: <[email protected]>> MIME-Version: 1.
Content-Type: text/plain
charset="Utf-8
Content-Transfer-Encoding: 7bi
X-Newsreader: Microsoft CDO for Windows 200
Content-Class: urn:content-classes:messag
Importance: norma
Priority: norma
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.
Newsgroups: microsoft.public.dotnet.framework.compactframewor
Path: cpmsftngxa10.phx.gb
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.compactframework:5120
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.18
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframewor

I have a strange problem with text binding in CF: the following command
works with no problem in forms application, while it returns
AgrumentException in SD application

Me.txtCar.DataBindings.Add("Text", dsTest , "tblCar.Name"

The modified version works well in CF

Me.txtCar.DataBindings.Add("Text", dsTest.Tables("tblCar") , "Name" )

It seems to me, that any period in last argument is producing error..
Any ideas

Because of this problem I am not able to syncronize linked parent-child
tables in dataset in CF application

Me.txtCar.DataBindings.Add("Text", dsTest.Tables("Parenttable"),
"RelationName.ColumnName"

Again, it returns ArgumentException, while it works well in forms
application


Any help would appreciated

Bostjan
 
Perhaps, you can use textbox's event handler. As soon as text has been
changed (i.e. another student selected), the event will fire and you can
apply appropriate filter to teacher's DataView bound to, say, DataGrid.

Due to screen size limitations, it might be more practical to add a button
"Show teachers" to pop up another form with teacher's data.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: Databinding problem in CF - BUG?
thread-index: AcQliPSfLc3xs+PrRvq+mA1Wov49qQ==
X-WN-Post: microsoft.public.dotnet.framework.compactframework
From: "=?Utf-8?B?Ym9zdGphbg==?=" <[email protected]>
References: <[email protected]>
Subject: RE: Databinding problem in CF - BUG?
Date: Sun, 18 Apr 2004 14:06:02 -0700
Lines: 77
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
Path: cpmsftngxa10.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.compactframework:51224
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

You can handle relations manually by opening another form with child row(s)
data.

Thank you for your response. With all this limitation in mind I have some
general CF syncronization questions. The point is, how to syncronize data
bound controls on the form with datatables in dataset. In forms vb or c#
applications, I am choosing between Currency Manager object and DataView /
DataRowView / DataRow objects in the following way: if I only manipulate
dataset's rows in code I choose DataView / DataRowView / DataRow objects (a
kind of mannual sync), but when I have to present data to the user
interface I choose Curreny Manager to do the sync job. I got this advice
years ago from David Sceppa, MS and it seems to serve well...
Concerning these limitations, can we say that using Currency Manager is an
inappropriate way of handling databinding in CF? In my example, I have
3-tier object oriented ppc application with disconnected ado.net. There are
many relations between tables in dataset. Let's say I have a student form
with name, class and other textboxes. I also have combo box that shows
teacher's name on the same form. When the user navigates between students I
want teachers records to be syncronized with students (one to many relation
between these tables). While the relations are not supported, I can only
choose "mannual data binding" with DataRow objects...

Thank you for any comments,


Bostjan


----- "Ilya Tumanov [MS]" wrote: -----

Both are by design limitation. No periods, no relations, sorry.
You can handle relations manually by opening another form with child
row(s)
data.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
Thread-Topic: Databinding problem in CF - BUG?
thread-index: AcQkqAvFVVi6n5YRTQ6lFdSR4mQiWA==
X-WN-Post: microsoft.public.dotnet.framework.compactframework
From: "=?Utf-8?B?Qm9zdGphbg==?="
Date: Sat, 17 Apr 2004 11:16:04 -0700
Lines: 25
Message-ID: <[email protected]>> MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
Path: cpmsftngxa10.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.compactframework:51206
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I have a strange problem with text binding in CF: the following
command
works with no problem in forms application, while it returns
AgrumentException in SD application:

Me.txtCar.DataBindings.Add("Text", dsTest , "tblCar.Name")

The modified version works well in CF:

Me.txtCar.DataBindings.Add("Text", dsTest.Tables("tblCar") , "Name" ).

It seems to me, that any period in last argument is producing error...
Any ideas?

Because of this problem I am not able to syncronize linked
parent-child
tables in dataset in CF application:

Me.txtCar.DataBindings.Add("Text", dsTest.Tables("Parenttable"),
"RelationName.ColumnName")

Again, it returns ArgumentException, while it works well in forms
application.


Any help would appreciated,

Bostjan B
 
Back
Top