How to get data from datagridview into textbox by clicking on record Using Visual Studio.

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ค. 2023
  • shoaibtiwana.blogspot.com/202...
    Use for loop and write this code
    textBox5.Text = this.dataGridView1.CurrentRow.Cells[0].Value.ToString();
    textBox6.Text = this.dataGridView1.CurrentRow.Cells[1].Value.ToString();
    textBox7.Text = this.dataGridView1.CurrentRow.Cells[2].Value.ToString();
    textBox8.Text = this.dataGridView1.CurrentRow.Cells[3].Value.ToString();
    textBox9.Text = this.dataGridView1.CurrentRow.Cells[4].Value.ToString();
    textBox10.Text = this.dataGridView1.CurrentRow.Cells[5].Value.ToString();
    textBox11.Text = this.dataGridView1.CurrentRow.Cells[6].Value.ToString();
    textBox12.Text = this.dataGridView1.CurrentRow.Cells[7].Value.ToString();
    textBox13.Text = this.dataGridView1.CurrentRow.Cells[8].Value.ToString();
    textBox14.Text = this.dataGridView1.CurrentRow.Cells[8].Value.ToString();
    #datagridview #import #get #csharp #dotnet #tricks #learning #software
  • เกม

ความคิดเห็น •