That will then display the value of the SomeProperty property of your list items in the Label. To navigate the list you would set the Position property of the BindingSource or call a method like MoveNext.CSharp Code:
this.BindingSource1.DataSource = myObj.GetDepartmentsByUserID(); this.Label1.DataBindings.Add("Text", this.BindingSource1, "SomeProperty");
That said, your code makes no sense to me. Why does your method have two arguments that never get used?




Reply With Quote