Hi
Try this code..
private void Form1_Load(object sender, EventArgs e)
{
DataTable dt = new DataTable();
dt.Columns.Add("Name", typeof(string));
dt.Columns.Add("ID", typeof(int));
dt.Rows.Add("aaaa", 1);
dt.Rows.Add("bbbb", 2);
dt.Rows.Add("cccc", 3);
dt.Rows.Add("ddd", 4);
dt.Rows.Add("eeee", 5);
comboBox1.DataSource = dt.DefaultView;
comboBox1.ValueMember = "ID";
comboBox1.DisplayMember = "Name";
}
private void button1_Click(object sender, EventArgs e)
{
string name = ((DataRowView)comboBox1.Items[comboBox1.SelectedIndex]).Row["Name"]+"";
int id = (int) ((DataRowView)comboBox1.Items[comboBox1.SelectedIndex]).Row["ID"];
}