matt23lucier
MIS
I have a combo box that I am populating. I fill the comboBox alrite but the string that diplays in the combobox is not what I want. Here is my code:
for(int i =0; i < dt.Rows.Count; i++)
{
cmb.Items.Add(new recordClass(dt.Rows["RecordType"].ToString(), Convert.ToInt32(dt.Rows["RecordId"])));
}
Inside the combobox is reading: trackingsytem.RecordClass
- I want the contents of dt.Rows["RecordType"] to appear in the combobox. Any help would be appreciated.
Matt
for(int i =0; i < dt.Rows.Count; i++)
{
cmb.Items.Add(new recordClass(dt.Rows["RecordType"].ToString(), Convert.ToInt32(dt.Rows["RecordId"])));
}
Inside the combobox is reading: trackingsytem.RecordClass
- I want the contents of dt.Rows["RecordType"] to appear in the combobox. Any help would be appreciated.
Matt