hello all.....i have a combo box in one form and data grid view in another form. What i want is when i select a value in the combo box that value should appear in the grid view. How can i achieve this??
thanks in advance

Hello,

I'm not sure but try something like this:

form2.dataGridView1.CurrentRow.Cells[0].Value = comboBox1.SelectedIndex.Value;  

Or:

 form2.DataGridView1.Add(ComboBox.SelectedIndex.Value);

Like i said im not sure, but maybe that will help you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.