Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've been wondering this for a while, might as well pose the question here.

 

I have interface A and class B defined as:

 


public interface A
{
string Name { get; set; }
string Desc { get; set; }
}

public class B: A
{
private string m_Name;
private string m_Desc;

string A.Name
{ get { return m_Name; }
set { m_Name = value; }
}

string A.Desc
{
get { return m_Desc; }
set { m_Desc = value; }
}
}
[/Code]

 

 

I want to data-bind an array (or list, doesn't matter) of Class B to a datagrid.

How do I do it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...