h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Compare DatagridviewComboBox Value with TextBox Value in DataGridview using C#.net

"Compare DatagridviewComboBox Value with TextBox Value in DataGridview using C#.net"
private void button1_Click(object sender, EventArgs e)
{
DataGridViewComboBoxColumn column1 = (DataGridViewComboBoxColumn)dataGridView1.Columns[0];
foreach (string str in column1.Items)
{
if (str == textBox1.Text)
{
MessageBox.Show("Already Exists");
break;
}
}
}