Hi,
I want display datgridview rows values in textbox.
when select datgridview row then this display in textbox
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Krishna GaradPosted Nov 30, 2011, 8:02 AM
in DataGridView's RowHeaderMouseClick event write the following lines.
{
textBox1.Text = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
textBox2.Text = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
//and so on
}
may solve this