Dear Sir,

How to get dataGridView cell value from Form1 to textBox of Form2 in C# winforms

form2.txbox.Text = form1.dgv.Rows[RowIndex].Cells[ColumnIndex].Value.ToString();

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.