G
Greg
I've got a DataTable I'm trying to bind to a ListBox.
listBox.DataSource = dtCustomers;
listBox.DisplayMember = "customer_name";
listBox.ValueMember = "customer_id";
The returns my all the rows in the DataTable but in the
ListBox all the items are "System.Data.DataRowView".
What am I doing wrong? This works for the ComboBox.
Thanks for any help,
Greg
listBox.DataSource = dtCustomers;
listBox.DisplayMember = "customer_name";
listBox.ValueMember = "customer_id";
The returns my all the rows in the DataTable but in the
ListBox all the items are "System.Data.DataRowView".
What am I doing wrong? This works for the ComboBox.
Thanks for any help,
Greg