SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
private void cmbLineColor_SelectedIndexChanged(object sender, EventArgs e) { DataRowView drv = (DataRowView)cmbLineColor.SelectedItem; int selectedValue = (int)drv.Row.ItemArray[1]; }