simple databinding on a tabpage not so simple??

R

Robi

In a toy project, the tab control is benign. Every time I
get a large windws form with lots of control on lots of
tab pages, it turns into a monster! True since J++ also.

OK: Databinding controls on tab pages is a huge headache
because for some reason when I fill a dataset before
changing (programmatically) to the tabpage (which of
course has edit controls bound to that dataset), then the
controls seems to refuse to show the data they are bound
to. I can step the debugger, look at the data set and see
the data. I can look into the bindings collection and see
the binding is still in place. The control (usually just
a textbox or something) however remains empty, and any new
data typed into the controls is NOT updated back into the
dataset either. I have tried everything!

If I change pages, then fill dataset in the page change
event handler, why everything works perfectly. I can
change the position of my fill statement to sometime
before the tabpage chage and no data appears in the bound
controls which were previously working fine except for
that one change. I am stumped and I've been doing this
awhile.

I originally designed the application to pull data for
each tabpage individually when the user selects that tab
to minimize concurrency issues. Now I seem to be locked
into that design paradigm. Help!

Thanx

Robi
 
Y

Ying-Shen Yu[MS]

Hi Robi,
I've made a simple test ,but couldn't reproduce your problem, please
give me an simple example to reproduce the problem, thanks !

Kind regards,

Ying-Shen Yu [MS]
Microsoft Support Engineer

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2001 Microsoft Corporation. All rights
reserved.
--------------------
| Content-Class: urn:content-classes:message
| From: "Robi" <[email protected]>
| Sender: "Robi" <[email protected]>
| Subject: simple databinding on a tabpage not so simple??
| Date: Wed, 27 Aug 2003 16:47:20 -0700
| Lines: 33
| 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: AcNs9Y5sQp/nsovMRTu/Kpxwlb4wFQ==
| Newsgroups: microsoft.public.dotnet.framework.windowsforms
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:51031
| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
|
| In a toy project, the tab control is benign. Every time I
| get a large windws form with lots of control on lots of
| tab pages, it turns into a monster! True since J++ also.
|
| OK: Databinding controls on tab pages is a huge headache
| because for some reason when I fill a dataset before
| changing (programmatically) to the tabpage (which of
| course has edit controls bound to that dataset), then the
| controls seems to refuse to show the data they are bound
| to. I can step the debugger, look at the data set and see
| the data. I can look into the bindings collection and see
| the binding is still in place. The control (usually just
| a textbox or something) however remains empty, and any new
| data typed into the controls is NOT updated back into the
| dataset either. I have tried everything!
|
| If I change pages, then fill dataset in the page change
| event handler, why everything works perfectly. I can
| change the position of my fill statement to sometime
| before the tabpage chage and no data appears in the bound
| controls which were previously working fine except for
| that one change. I am stumped and I've been doing this
| awhile.
|
| I originally designed the application to pull data for
| each tabpage individually when the user selects that tab
| to minimize concurrency issues. Now I seem to be locked
| into that design paradigm. Help!
|
| Thanx
|
| Robi
|
|
 
Y

Ying-Shen Yu[MS]

Hi Robi,
I think it will be helpful if you send an example appliation to me
for reproducing the problem, you see I'm not clear about the detail
implementation of your program, and it's hard to say what is a large
winform project, so it's not easy for me to reproduce your problem, sorry.
I'll research on your problem as soon as I get your example and reproduce
that problem.
thanks a lot!

Kind regards,

Ying-Shen Yu [MS]
Microsoft Support Engineer

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2001 Microsoft Corporation. All rights
reserved.
--------------------
| Content-Class: urn:content-classes:message
| From: "Robi" <[email protected]>
| Sender: "Robi" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: RE: simple databinding on a tabpage not so simple??
| Date: Thu, 28 Aug 2003 09:23:49 -0700
| Lines: 101
| 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: AcNtgMLyyXt8gQkwQkWRfUFknmVIHA==
| Newsgroups: microsoft.public.dotnet.framework.windowsforms
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:51098
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
|
| As I mentioned, I only get this behavior when using the
| tab control in a very large winforms project. I could try
| and make a simpler sample application and reproduce the
| problem I suppose... would that help?
|
| thanx
| Robi
|
|
|
| >-----Original Message-----
| >Hi Robi,
| > I've made a simple test ,but couldn't reproduce your
| problem, please
| >give me an simple example to reproduce the problem,
| thanks !
| >
| >Kind regards,
| >
| >Ying-Shen Yu [MS]
| >Microsoft Support Engineer
| >
| >This posting is provided "AS IS" with no warranties, and
| confers no rights.
| >You assume all risk for your use. 2001 Microsoft
| Corporation. All rights
| >reserved.
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "Robi" <[email protected]>
| >| Sender: "Robi" <[email protected]>
| >| Subject: simple databinding on a tabpage not so simple??
| >| Date: Wed, 27 Aug 2003 16:47:20 -0700
| >| Lines: 33
| >| 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: AcNs9Y5sQp/nsovMRTu/Kpxwlb4wFQ==
| >| Newsgroups:
| microsoft.public.dotnet.framework.windowsforms
| >| Path: cpmsftngxa06.phx.gbl
| >| Xref: cpmsftngxa06.phx.gbl
| >microsoft.public.dotnet.framework.windowsforms:51031
| >| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| >| X-Tomcat-NG:
| microsoft.public.dotnet.framework.windowsforms
| >|
| >| In a toy project, the tab control is benign. Every
| time I
| >| get a large windws form with lots of control on lots of
| >| tab pages, it turns into a monster! True since J++
| also.
| >|
| >| OK: Databinding controls on tab pages is a huge
| headache
| >| because for some reason when I fill a dataset before
| >| changing (programmatically) to the tabpage (which of
| >| course has edit controls bound to that dataset), then
| the
| >| controls seems to refuse to show the data they are
| bound
| >| to. I can step the debugger, look at the data set and
| see
| >| the data. I can look into the bindings collection and
| see
| >| the binding is still in place. The control (usually
| just
| >| a textbox or something) however remains empty, and any
| new
| >| data typed into the controls is NOT updated back into
| the
| >| dataset either. I have tried everything!
| >|
| >| If I change pages, then fill dataset in the page change
| >| event handler, why everything works perfectly. I can
| >| change the position of my fill statement to sometime
| >| before the tabpage chage and no data appears in the
| bound
| >| controls which were previously working fine except for
| >| that one change. I am stumped and I've been doing this
| >| awhile.
| >|
| >| I originally designed the application to pull data for
| >| each tabpage individually when the user selects that
| tab
| >| to minimize concurrency issues. Now I seem to be
| locked
| >| into that design paradigm. Help!
| >|
| >| Thanx
| >|
| >| Robi
| >|
| >|
| >
| >.
| >
|
 
Y

Ying-Shen Yu[MS]

Hi robi,
Have you sent me your example?
I'm afraid I haven't got it.
Please let me know the status of the problem, thanks a lot!

Kind regards,

Ying-Shen Yu [MS]
Microsoft Support Engineer

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2001 Microsoft Corporation. All rights
reserved.
--------------------
| Content-Class: urn:content-classes:message
| From: "Robi" <[email protected]>
| Sender: "Robi" <[email protected]>
| References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| Subject: RE: simple databinding on a tabpage not so simple??
| Date: Fri, 29 Aug 2003 10:02:26 -0700
| Lines: 290
| 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: AcNuT1LxQ3659kcKTcqPRhbZTF0vWw==
| Newsgroups: microsoft.public.dotnet.framework.windowsforms
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:51243
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
|
| Hi!
|
| My DB is not too big, only 6 megs and only 600k if I zip
| it up. Not much data, just a bunch of stored procedures.
| I tried the northwind approach but was unsuccessful at
| recreating the bug. If you agree, I will make a clone of
| my project with the DB and send it to you. Perhaps just
| easier for you to see the whole thing? the project zips
| up to about 3 megs though. I could get it smaller if I
| create a new with just the main form I think.
|
| Thanx in Advance,
|
| Robi
|
|
| >-----Original Message-----
| >Hi robi,
| > Sure, give me part of your project. And about the
| db, I'd like to know
| >how large is your db?
| >if your DB is not big(e.g. < 2MB) you are free to send
| it. Don't worry
| >about the restore procedure on my side if you backuped it
| correctly.
| >If it is a bit large,maybe you'd better use the
| northwind, but are you sure
| >that you can reproduce the problem using Northwind?
| >
| >I'm waiting wait for your example, thanks!
| >
| >Kind regards,
| >
| >Ying-Shen Yu [MS]
| >Microsoft Support Engineer
| >
| >This posting is provided "AS IS" with no warranties, and
| confers no rights.
| >You assume all risk for your use. 2001 Microsoft
| Corporation. All rights
| >reserved.
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "robi" <[email protected]>
| >| Sender: "robi" <[email protected]>
| >| References: <[email protected]>
| ><[email protected]>
| ><[email protected]>
| ><[email protected]>
| >| Subject: RE: simple databinding on a tabpage not so
| simple??
| >| Date: Fri, 29 Aug 2003 01:02:04 -0700
| >| Lines: 186
| >| 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
| >| Thread-Index: AcNuA9WnyAkZCe9pQfGNzuX4kXvVSg==
| >| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| >| Newsgroups:
| microsoft.public.dotnet.framework.windowsforms
| >| Path: cpmsftngxa06.phx.gbl
| >| Xref: cpmsftngxa06.phx.gbl
| >microsoft.public.dotnet.framework.windowsforms:51163
| >| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| >| X-Tomcat-NG:
| microsoft.public.dotnet.framework.windowsforms
| >|
| >| How should I do this? Can I take my main form and make
| a
| >| seperate little project out of it, it is written all in
| C#
| >| and I used designer code generation where possible. If
| I
| >| send you a backup of it's SQL Server 2k DB, will you be
| >| able to restore it locally and then run the project in
| >| VS2003? I think I could do that fairly easily. Or
| would
| >| it be better to make one off of northwind and let you
| >| change the connection string as needed?
| >|
| >| Thanx
| >| Robi
| >|
| >|
| >| >-----Original Message-----
| >| >Hi Robi,
| >| > I think it will be helpful if you send an
| example
| >| appliation to me
| >| >for reproducing the problem, you see I'm not clear
| about
| >| the detail
| >| >implementation of your program, and it's hard to say
| what
| >| is a large
| >| >winform project, so it's not easy for me to reproduce
| >| your problem, sorry.
| >| >I'll research on your problem as soon as I get your
| >| example and reproduce
| >| >that problem.
| >| >thanks a lot!
| >| >
| >| >Kind regards,
| >| >
| >| >Ying-Shen Yu [MS]
| >| >Microsoft Support Engineer
| >| >
| >| >This posting is provided "AS IS" with no warranties,
| and
| >| confers no rights.
| >| >You assume all risk for your use. 2001 Microsoft
| >| Corporation. All rights
| >| >reserved.
| >| >--------------------
| >| >| Content-Class: urn:content-classes:message
| >| >| From: "Robi" <[email protected]>
| >| >| Sender: "Robi" <[email protected]>
| >| >| References: <[email protected]>
| >| ><[email protected]>
| >| >| Subject: RE: simple databinding on a tabpage not so
| >| simple??
| >| >| Date: Thu, 28 Aug 2003 09:23:49 -0700
| >| >| Lines: 101
| >| >| 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: AcNtgMLyyXt8gQkwQkWRfUFknmVIHA==
| >| >| Newsgroups:
| >| microsoft.public.dotnet.framework.windowsforms
| >| >| Path: cpmsftngxa06.phx.gbl
| >| >| Xref: cpmsftngxa06.phx.gbl
| >| >microsoft.public.dotnet.framework.windowsforms:51098
| >| >| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| >| >| X-Tomcat-NG:
| >| microsoft.public.dotnet.framework.windowsforms
| >| >|
| >| >| As I mentioned, I only get this behavior when using
| the
| >| >| tab control in a very large winforms project. I
| could
| >| try
| >| >| and make a simpler sample application and reproduce
| the
| >| >| problem I suppose... would that help?
| >| >|
| >| >| thanx
| >| >| Robi
| >| >|
| >| >|
| >| >|
| >| >| >-----Original Message-----
| >| >| >Hi Robi,
| >| >| > I've made a simple test ,but couldn't
| reproduce
| >| your
| >| >| problem, please
| >| >| >give me an simple example to reproduce the problem,
| >| >| thanks !
| >| >| >
| >| >| >Kind regards,
| >| >| >
| >| >| >Ying-Shen Yu [MS]
| >| >| >Microsoft Support Engineer
| >| >| >
| >| >| >This posting is provided "AS IS" with no
| warranties,
| >| and
| >| >| confers no rights.
| >| >| >You assume all risk for your use. 2001 Microsoft
| >| >| Corporation. All rights
| >| >| >reserved.
| >| >| >--------------------
| >| >| >| Content-Class: urn:content-classes:message
| >| >| >| From: "Robi" <[email protected]>
| >| >| >| Sender: "Robi" <[email protected]>
| >| >| >| Subject: simple databinding on a tabpage not so
| >| simple??
| >| >| >| Date: Wed, 27 Aug 2003 16:47:20 -0700
| >| >| >| Lines: 33
| >| >| >| Message-ID: <0e9b01c36cf5$8e6c5ec0
| [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: AcNs9Y5sQp/nsovMRTu/Kpxwlb4wFQ==
| >| >| >| Newsgroups:
| >| >| microsoft.public.dotnet.framework.windowsforms
| >| >| >| Path: cpmsftngxa06.phx.gbl
| >| >| >| Xref: cpmsftngxa06.phx.gbl
| >| >| >microsoft.public.dotnet.framework.windowsforms:51031
| >| >| >| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| >| >| >| X-Tomcat-NG:
| >| >| microsoft.public.dotnet.framework.windowsforms
| >| >| >|
| >| >| >| In a toy project, the tab control is benign.
| Every
| >| >| time I
| >| >| >| get a large windws form with lots of control on
| lots
| >| of
| >| >| >| tab pages, it turns into a monster! True since
| J++
| >| >| also.
| >| >| >|
| >| >| >| OK: Databinding controls on tab pages is a huge
| >| >| headache
| >| >| >| because for some reason when I fill a dataset
| before
| >| >| >| changing (programmatically) to the tabpage (which
| of
| >| >| >| course has edit controls bound to that dataset),
| >| then
| >| >| the
| >| >| >| controls seems to refuse to show the data they
| are
| >| >| bound
| >| >| >| to. I can step the debugger, look at the data
| set
| >| and
| >| >| see
| >| >| >| the data. I can look into the bindings
| collection
| >| and
| >| >| see
| >| >| >| the binding is still in place. The control
| (usually
| >| >| just
| >| >| >| a textbox or something) however remains empty,
| and
| >| any
| >| >| new
| >| >| >| data typed into the controls is NOT updated back
| >| into
| >| >| the
| >| >| >| dataset either. I have tried everything!
| >| >| >|
| >| >| >| If I change pages, then fill dataset in the page
| >| change
| >| >| >| event handler, why everything works perfectly. I
| >| can
| >| >| >| change the position of my fill statement to
| sometime
| >| >| >| before the tabpage chage and no data appears in
| the
| >| >| bound
| >| >| >| controls which were previously working fine
| except
| >| for
| >| >| >| that one change. I am stumped and I've been doing
| >| this
| >| >| >| awhile.
| >| >| >|
| >| >| >| I originally designed the application to pull
| data
| >| for
| >| >| >| each tabpage individually when the user selects
| that
| >| >| tab
| >| >| >| to minimize concurrency issues. Now I seem to be
| >| >| locked
| >| >| >| into that design paradigm. Help!
| >| >| >|
| >| >| >| Thanx
| >| >| >|
| >| >| >| Robi
| >| >| >|
| >| >| >|
| >| >| >
| >| >| >.
| >| >| >
| >| >|
| >| >
| >| >.
| >| >
| >|
| >
| >.
| >
|
 
Y

Ying-Shen Yu[MS]

Hi robi,
I've tried your program, but I got some problem when following your
repro steps. the main trouble is
I can't find the 'Loan1' at the 'all loan list'. Could any other loan in
the loan list reproduce this problem?. And I'm trying to use the another
loan names '1- agnt: Robi, brwr: robio peteo a -- CB Santa Monica', but
here is another question, I'm not clear on your words 'So if you open loan
1 and click the employment tab first, and then click the borrower tab, the
borrower information does not show up.'
What does the borrower tab mean? I didn't find a Tab in the TabControl
names that, there's a GroupBox with the Caption 'Borrower' do you refer to
that ? but It seems nothing happened when I click on that text.
And My another concern is you are using the Application Updater Block,
Are you usiing this module in this Form? I just want to make sure if it is
related to our problem,
Thanks, waiting for your reply!



Best regards,

Ying-Shen Yu [MS]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "as is" with no warranties and confers no rights.

--------------------
| X-Tomcat-ID: 40735617
| References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (Ying-Shen Yu[MS])
| Organization: Microsoft
| Date: Wed, 03 Sep 2003 01:35:07 GMT
| Subject: RE: simple databinding on a tabpage not so simple??
| X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.windowsforms
| Lines: 269
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:51518
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi robi,
| Have you sent me your example?
| I'm afraid I haven't got it.
| Please let me know the status of the problem, thanks a lot!
|
| Kind regards,
|
| Ying-Shen Yu [MS]
| Microsoft Support Engineer
|
| This posting is provided "AS IS" with no warranties, and confers no
rights.
| You assume all risk for your use. 2001 Microsoft Corporation. All rights
| reserved.
| --------------------
| | Content-Class: urn:content-classes:message
| | From: "Robi" <[email protected]>
| | Sender: "Robi" <[email protected]>
| | References: <[email protected]>
| <[email protected]>
| <[email protected]>
| <[email protected]>
| <[email protected]>
| <[email protected]>
| | Subject: RE: simple databinding on a tabpage not so simple??
| | Date: Fri, 29 Aug 2003 10:02:26 -0700
| | Lines: 290
| | 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: AcNuT1LxQ3659kcKTcqPRhbZTF0vWw==
| | Newsgroups: microsoft.public.dotnet.framework.windowsforms
| | Path: cpmsftngxa06.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.framework.windowsforms:51243
| | NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| | X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
| |
| | Hi!
| |
| | My DB is not too big, only 6 megs and only 600k if I zip
| | it up. Not much data, just a bunch of stored procedures.
| | I tried the northwind approach but was unsuccessful at
| | recreating the bug. If you agree, I will make a clone of
| | my project with the DB and send it to you. Perhaps just
| | easier for you to see the whole thing? the project zips
| | up to about 3 megs though. I could get it smaller if I
| | create a new with just the main form I think.
| |
| | Thanx in Advance,
| |
| | Robi
| |
| |
| | >-----Original Message-----
| | >Hi robi,
| | > Sure, give me part of your project. And about the
| | db, I'd like to know
| | >how large is your db?
| | >if your DB is not big(e.g. < 2MB) you are free to send
| | it. Don't worry
| | >about the restore procedure on my side if you backuped it
| | correctly.
| | >If it is a bit large,maybe you'd better use the
| | northwind, but are you sure
| | >that you can reproduce the problem using Northwind?
| | >
| | >I'm waiting wait for your example, thanks!
| | >
| | >Kind regards,
| | >
| | >Ying-Shen Yu [MS]
| | >Microsoft Support Engineer
| | >
| | >This posting is provided "AS IS" with no warranties, and
| | confers no rights.
| | >You assume all risk for your use. 2001 Microsoft
| | Corporation. All rights
| | >reserved.
| | >--------------------
| | >| Content-Class: urn:content-classes:message
| | >| From: "robi" <[email protected]>
| | >| Sender: "robi" <[email protected]>
| | >| References: <[email protected]>
| | ><[email protected]>
| | ><[email protected]>
| | ><[email protected]>
| | >| Subject: RE: simple databinding on a tabpage not so
| | simple??
| | >| Date: Fri, 29 Aug 2003 01:02:04 -0700
| | >| Lines: 186
| | >| 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
| | >| Thread-Index: AcNuA9WnyAkZCe9pQfGNzuX4kXvVSg==
| | >| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| | >| Newsgroups:
| | microsoft.public.dotnet.framework.windowsforms
| | >| Path: cpmsftngxa06.phx.gbl
| | >| Xref: cpmsftngxa06.phx.gbl
| | >microsoft.public.dotnet.framework.windowsforms:51163
| | >| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| | >| X-Tomcat-NG:
| | microsoft.public.dotnet.framework.windowsforms
| | >|
| | >| How should I do this? Can I take my main form and make
| | a
| | >| seperate little project out of it, it is written all in
| | C#
| | >| and I used designer code generation where possible. If
| | I
| | >| send you a backup of it's SQL Server 2k DB, will you be
| | >| able to restore it locally and then run the project in
| | >| VS2003? I think I could do that fairly easily. Or
| | would
| | >| it be better to make one off of northwind and let you
| | >| change the connection string as needed?
| | >|
| | >| Thanx
| | >| Robi
| | >|
| | >|
| | >| >-----Original Message-----
| | >| >Hi Robi,
| | >| > I think it will be helpful if you send an
| | example
| | >| appliation to me
| | >| >for reproducing the problem, you see I'm not clear
| | about
| | >| the detail
| | >| >implementation of your program, and it's hard to say
| | what
| | >| is a large
| | >| >winform project, so it's not easy for me to reproduce
| | >| your problem, sorry.
| | >| >I'll research on your problem as soon as I get your
| | >| example and reproduce
| | >| >that problem.
| | >| >thanks a lot!
| | >| >
| | >| >Kind regards,
| | >| >
| | >| >Ying-Shen Yu [MS]
| | >| >Microsoft Support Engineer
| | >| >
| | >| >This posting is provided "AS IS" with no warranties,
| | and
| | >| confers no rights.
| | >| >You assume all risk for your use. 2001 Microsoft
| | >| Corporation. All rights
| | >| >reserved.
| | >| >--------------------
| | >| >| Content-Class: urn:content-classes:message
| | >| >| From: "Robi" <[email protected]>
| | >| >| Sender: "Robi" <[email protected]>
| | >| >| References: <[email protected]>
| | >| ><[email protected]>
| | >| >| Subject: RE: simple databinding on a tabpage not so
| | >| simple??
| | >| >| Date: Thu, 28 Aug 2003 09:23:49 -0700
| | >| >| Lines: 101
| | >| >| 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: AcNtgMLyyXt8gQkwQkWRfUFknmVIHA==
| | >| >| Newsgroups:
| | >| microsoft.public.dotnet.framework.windowsforms
| | >| >| Path: cpmsftngxa06.phx.gbl
| | >| >| Xref: cpmsftngxa06.phx.gbl
| | >| >microsoft.public.dotnet.framework.windowsforms:51098
| | >| >| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| | >| >| X-Tomcat-NG:
| | >| microsoft.public.dotnet.framework.windowsforms
| | >| >|
| | >| >| As I mentioned, I only get this behavior when using
| | the
| | >| >| tab control in a very large winforms project. I
| | could
| | >| try
| | >| >| and make a simpler sample application and reproduce
| | the
| | >| >| problem I suppose... would that help?
| | >| >|
| | >| >| thanx
| | >| >| Robi
| | >| >|
| | >| >|
| | >| >|
| | >| >| >-----Original Message-----
| | >| >| >Hi Robi,
| | >| >| > I've made a simple test ,but couldn't
| | reproduce
| | >| your
| | >| >| problem, please
| | >| >| >give me an simple example to reproduce the problem,
| | >| >| thanks !
| | >| >| >
| | >| >| >Kind regards,
| | >| >| >
| | >| >| >Ying-Shen Yu [MS]
| | >| >| >Microsoft Support Engineer
| | >| >| >
| | >| >| >This posting is provided "AS IS" with no
| | warranties,
| | >| and
| | >| >| confers no rights.
| | >| >| >You assume all risk for your use. 2001 Microsoft
| | >| >| Corporation. All rights
| | >| >| >reserved.
| | >| >| >--------------------
| | >| >| >| Content-Class: urn:content-classes:message
| | >| >| >| From: "Robi" <[email protected]>
| | >| >| >| Sender: "Robi" <[email protected]>
| | >| >| >| Subject: simple databinding on a tabpage not so
| | >| simple??
| | >| >| >| Date: Wed, 27 Aug 2003 16:47:20 -0700
| | >| >| >| Lines: 33
| | >| >| >| Message-ID: <0e9b01c36cf5$8e6c5ec0
| | [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: AcNs9Y5sQp/nsovMRTu/Kpxwlb4wFQ==
| | >| >| >| Newsgroups:
| | >| >| microsoft.public.dotnet.framework.windowsforms
| | >| >| >| Path: cpmsftngxa06.phx.gbl
| | >| >| >| Xref: cpmsftngxa06.phx.gbl
| | >| >| >microsoft.public.dotnet.framework.windowsforms:51031
| | >| >| >| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| | >| >| >| X-Tomcat-NG:
| | >| >| microsoft.public.dotnet.framework.windowsforms
| | >| >| >|
| | >| >| >| In a toy project, the tab control is benign.
| | Every
| | >| >| time I
| | >| >| >| get a large windws form with lots of control on
| | lots
| | >| of
| | >| >| >| tab pages, it turns into a monster! True since
| | J++
| | >| >| also.
| | >| >| >|
| | >| >| >| OK: Databinding controls on tab pages is a huge
| | >| >| headache
| | >| >| >| because for some reason when I fill a dataset
| | before
| | >| >| >| changing (programmatically) to the tabpage (which
| | of
| | >| >| >| course has edit controls bound to that dataset),
| | >| then
| | >| >| the
| | >| >| >| controls seems to refuse to show the data they
| | are
| | >| >| bound
| | >| >| >| to. I can step the debugger, look at the data
| | set
| | >| and
| | >| >| see
| | >| >| >| the data. I can look into the bindings
| | collection
| | >| and
| | >| >| see
| | >| >| >| the binding is still in place. The control
| | (usually
| | >| >| just
| | >| >| >| a textbox or something) however remains empty,
| | and
| | >| any
| | >| >| new
| | >| >| >| data typed into the controls is NOT updated back
| | >| into
| | >| >| the
| | >| >| >| dataset either. I have tried everything!
| | >| >| >|
| | >| >| >| If I change pages, then fill dataset in the page
| | >| change
| | >| >| >| event handler, why everything works perfectly. I
| | >| can
| | >| >| >| change the position of my fill statement to
| | sometime
| | >| >| >| before the tabpage chage and no data appears in
| | the
| | >| >| bound
| | >| >| >| controls which were previously working fine
| | except
| | >| for
| | >| >| >| that one change. I am stumped and I've been doing
| | >| this
| | >| >| >| awhile.
| | >| >| >|
| | >| >| >| I originally designed the application to pull
| | data
| | >| for
| | >| >| >| each tabpage individually when the user selects
| | that
| | >| >| tab
| | >| >| >| to minimize concurrency issues. Now I seem to be
| | >| >| locked
| | >| >| >| into that design paradigm. Help!
| | >| >| >|
| | >| >| >| Thanx
| | >| >| >|
| | >| >| >| Robi
| | >| >| >|
| | >| >| >|
| | >| >| >
| | >| >| >.
| | >| >| >
| | >| >|
| | >| >
| | >| >.
| | >| >
| | >|
| | >
| | >.
| | >
| |
|
|
 

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

Top