Databinding problem with inherited class

  • Thread starter Thread starter Olivier Deborne
  • Start date Start date
O

Olivier Deborne

Hello,

I have two classes A & B

public class A : B
{
private string lastname;

public string LastName
{
get{};
}
}

public class B
{
private string firstname;

public string FirstName
{
get{};
}
}

Class A inherits from B. When I try to databind the field FirstName, an
error occurs

MyTextBox.DataBindings.Add("Text", A, "FirstName"). It seems the databinding
does not see the property "FirstName", what I'm doing wrong?

Thanks for your help.

BRgds,
Olivier.
 
hi nair,

i raised one question in the same group, with subject title"threads". help
me please.

thanks
Tpool
 
Back
Top