private void Button1_Click(object sender, EventArgs e) { //Creating the collection people = new PersonCollection(); people.Add(new Person("Mr.", "John", "Smith", "Sr.")); people.Add(new Person("Mrs.", "Mary", "Jones", "")); people.Add(new Person("Miss", "Sally", "Porter", "")); people.Add(new Person("Mr.", "Joseph", "Gold", "Jr.")); people.Add(new Person("Dr.", "Ian", "Goldsmith", "")); //Binding GridEX to the people collection GridEX1.SetDataBinding(people, ""); //Forcing GridEX control to generate the columns needed //to display all the properties in the Person class. GridEX1.RetrieveStructure(); }