PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms not seeing the inherited members of a data source

Reply

not seeing the inherited members of a data source

 
Thread Tools Rate Thread
Old 08-02-2006, 12:08 PM   #1
dirk.bonne@gmail.com
Guest
 
Posts: n/a
Default not seeing the inherited members of a data source


Hi,

I have a problem seeing the members of the base interfaces when using a
data source in the visual studio designer.

as an example:

public interface A { int Am { get; } }
public interface B : A { int Bm { get; } }

In visual studio 2005, I create a data source (Add New Data Source) and
select the B interface,

When I look at the available member properties I only see Bm not Am. So
I can not for exampl bind a ComboBox to the member Am. Is there a way
around this?

any hint is very welcome!
Dirk

  Reply With Quote
Old 08-02-2006, 02:14 PM   #2
dirk.bonne@gmail.com
Guest
 
Posts: n/a
Default Re: not seeing the inherited members of a data source

OKay reply to my self....

It works ok when doing

public interface B : A {
new int Am { get; }
int Bm { get; }
}

but this feels very wrong :-(

Dirk

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off