Hi ~For the databinding for the control classi.e. Control.DataBindings.Add(string propertyName,object dataSource,string dataMember)for the parameter of dataSource and dataMember, how can i bind the value of the control to the specific in arraye.g. if i have a class public class Person{public object[] extras}then i want to bind the control with the second element in Person.extras i.e. Person.extras[1]i try the following ways, but not successcontrolObj.DataBindings.Add("Text, person.extras, new object[] {1});and controlObj.DataBindings.Add("Text", person, "extras[1]");
The Control i need to being binding to is allow to bind the single value only, such as TextBox, can just bind to a sigle value. But ListBox can bind to a list or array because it allow multiple to display in the control Thank :)