+ 3
dataGridView cell value to textBox
Dear Sir, How to get dataGridView cell value from Form1 to textBox of Form2 in C# winforms
2 ответов
+ 4
thank sneeze I got it
+ 1
Have a look at this code
form1.textbox1.text = datagridview1.item("column name/column index",datagridview1.currentrow.index).value.tostring()
from this post
https://www.daniweb.com/programming/software-development/threads/211040/display-datagridview-selected-row-in-textboxes#post947569
And this post
https://www.dotnetperls.com/datagridview-tutorial
Why are there 2 forms. Is the second form a dialog or a child form.