Home All Groups Group Topic Archive Search About
Author
21 Mar 2006 10:13 PM
Jonathan Currie
Not sure if anyone else has encountered this, but it cost me a few
hours:

I have a strongly typed dataset:  dsMedia

The dataset contains a table: People

I have some text boxes bound to the People table, so I want to create a
CurrencyManager:

Private cmPeople As CurrencyManager

This does NOT work (but no error is thrown):
cmPeople = CType(BindingContext(dsMediaFunctions.People),
CurrencyManager)

But this works fine!
cmPeople = CType(BindingContext(dsMediaFunctions, "People"),
CurrencyManager)

It would be nice to find the table name via Intellisense, but I can't
use it here. Oh, this is VS.Net 2003, BTW...

Author
22 Mar 2006 6:21 AM
Cor Ligthert [MVP]
Jonathan,

Do you see why most of us active in this newsgroup avoid the typed dataset.

The first problem is forever to find the name that the designer has given to
the table.

Cor


Show quote
"Jonathan Currie" <benotcont***@hotmail.com> schreef in bericht
news:1142979225.282351.8600@e56g2000cwe.googlegroups.com...
> Not sure if anyone else has encountered this, but it cost me a few
> hours:
>
> I have a strongly typed dataset:  dsMedia
>
> The dataset contains a table: People
>
> I have some text boxes bound to the People table, so I want to create a
> CurrencyManager:
>
> Private cmPeople As CurrencyManager
>
> This does NOT work (but no error is thrown):
> cmPeople = CType(BindingContext(dsMediaFunctions.People),
> CurrencyManager)
>
> But this works fine!
> cmPeople = CType(BindingContext(dsMediaFunctions, "People"),
> CurrencyManager)
>
> It would be nice to find the table name via Intellisense, but I can't
> use it here. Oh, this is VS.Net 2003, BTW...
>

AddThis Social Bookmark Button