Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
470
Databinding on Grid
posted

Hi,

my grid displays a list of customer-objects. one column displays the adress (it is bound to the Adress - property of the customer).

The DataSource of the grid is a BindingSource witch contains customer objects.

 

The Objects are:

     public class Adress

    {

        public string Street {get; set}

        public string City {get; set} 

 

        public override string ToString()

        {

            return string.Format("{0} - {1}", Name, City);

        }

    } 

    public class Customer

    {

        public string Name {get; set}

        public Adress Adress {get; set} 

    }

 

How can I configure the column "Adress" in the customer grid, that the following goals are reached?

  • the column should display the city of the adress object
  • the column should have an editor (the open a dropdown editor) to select a new adress for current the customer-object

 

I hope someone can help me!

Michael 

 

Parents Reply Children
No Data