J
John
Hi,
I have a DataSet that I am using to bind to a combobox. I am trying to get
the column name so I can use it for the display member. I am using the code
below to get it, is there a better way?
DataTable tbl = ds.Tables[0];
DataColumn col = tbl.Columns[0];
this.sizeComboBox.DisplayMember = col.ColumnName;
I have a DataSet that I am using to bind to a combobox. I am trying to get
the column name so I can use it for the display member. I am using the code
below to get it, is there a better way?
DataTable tbl = ds.Tables[0];
DataColumn col = tbl.Columns[0];
this.sizeComboBox.DisplayMember = col.ColumnName;