Riekus007
0
Newbie Poster
Recommended Answers
Jump to PostThis will do the trick:
Just for into: number 1 in the square brackets represents 2dn column in dgv.private void GetValueFromDGVToTextBox() { int row = this.dataGridView1.CurrentCell.RowIndex; if (row > -1) { string value = this.dataGridView1[1, row].FormattedValue.ToString(); textBox1.Text = value; } }
All 4 Replies
Mitja Bonca
557
Nearly a Posting Maven
Riekus007
0
Newbie Poster
crishjeny
-10
Junior Poster in Training
Mitja Bonca
557
Nearly a Posting Maven
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.