I have the Following Class
public class Address
{
public string AddressPlace { get; set; }
public int GovernmentID { get; set; }
public int AreaID { get; set; }
public int BlockNo { get; set; }
public string StreetName { get; set; }
public string AvenuNo { get; set; }
public string buildingNo { get; set; }
public int buildingTypeID { get; set; }
public int floorNo { get; set; }
public int flatNo { get; set; }
public bool AssignHouse { get; set; }
public DateTime AssignDate { get; set; }
public string HouseDescrepition { get; set; }
public string AddressOutsideKw { get; set; }
}
public class Person
{
public int PersonID { get; set; }
public string PersonFullName { get; set; }
public byte[] PersonImage { get; set; }
public DateTime BirthDate { get; set; }
public int SexID { get; set; }
public int PlaceOfBirthID { get; set; }
public string Phone1 { get; set; }
public string Phone2 { get; set; }
public string MobileNo { get; set; }
public string Notes { get; set; }
}
public class MainActors:Person
{
public int FileNo { get; set; }
public Address Address {get;set;}
public SecurityInfo SecurityInfo {get;set;}
}
public class Deceased : MainActors
{
public string FirstName { get; set; }
public string SecondName { get; set; }
public string ThirdName { get; set; }
public string FourthName { get; set; }
public string FamilyName { get; set; }
public DateTime ReportingDate { get; set; }
public bool DeceasedFileisDeleted { get; set; }
public bool DeceasedFileisCertified { get; set; }
public MartyrdomData MartyrdomData {get;set;}
public Reporter Reporter {get;set;}
}
Please find the attachment File ( Class Diagram )
the Problem
- on winfrom
i try to binding Deceased Object to Control
i select control --> from proprieties window --> select Data Binding -- > Edit value
i should have Deceased Class Fields which should include all fields related to Deceased Class (Person + MainActors)
And Plus Hierarchy of Address ( to access it proprieties such as AddressPlace ) to bind it to Control
but the problem that was not happen what i can see is only Address Class without its Filed
on the other hand
that was work Correctly when i bind the Same Deceased Object to XtraGrid Control , I can see the Deceased Fields + Address as hierarchy and i can see Address fields
Please ... Please i need help
public class Address
{
public string AddressPlace { get; set; }
public int GovernmentID { get; set; }
public int AreaID { get; set; }
public int BlockNo { get; set; }
public string StreetName { get; set; }
public string AvenuNo { get; set; }
public string buildingNo { get; set; }
public int buildingTypeID { get; set; }
public int floorNo { get; set; }
public int flatNo { get; set; }
public bool AssignHouse { get; set; }
public DateTime AssignDate { get; set; }
public string HouseDescrepition { get; set; }
public string AddressOutsideKw { get; set; }
}
public class Person
{
public int PersonID { get; set; }
public string PersonFullName { get; set; }
public byte[] PersonImage { get; set; }
public DateTime BirthDate { get; set; }
public int SexID { get; set; }
public int PlaceOfBirthID { get; set; }
public string Phone1 { get; set; }
public string Phone2 { get; set; }
public string MobileNo { get; set; }
public string Notes { get; set; }
}
public class MainActors:Person
{
public int FileNo { get; set; }
public Address Address {get;set;}
public SecurityInfo SecurityInfo {get;set;}
}
public class Deceased : MainActors
{
public string FirstName { get; set; }
public string SecondName { get; set; }
public string ThirdName { get; set; }
public string FourthName { get; set; }
public string FamilyName { get; set; }
public DateTime ReportingDate { get; set; }
public bool DeceasedFileisDeleted { get; set; }
public bool DeceasedFileisCertified { get; set; }
public MartyrdomData MartyrdomData {get;set;}
public Reporter Reporter {get;set;}
}
Please find the attachment File ( Class Diagram )
the Problem
- on winfrom
i try to binding Deceased Object to Control
i select control --> from proprieties window --> select Data Binding -- > Edit value
i should have Deceased Class Fields which should include all fields related to Deceased Class (Person + MainActors)
And Plus Hierarchy of Address ( to access it proprieties such as AddressPlace ) to bind it to Control
but the problem that was not happen what i can see is only Address Class without its Filed
on the other hand
that was work Correctly when i bind the Same Deceased Object to XtraGrid Control , I can see the Deceased Fields + Address as hierarchy and i can see Address fields
Please ... Please i need help