Mrb arkadaşlar aşağıdaki kodlardan;
MuhtarTakip.Form1.dataGridView1' is inaccessible due to its protection level C:\Users\user\Documents\Visual Studio 2005\Projects\MuhtarTakip\MuhtarTakip\Form3.cs 65 38 MuhtarTakip
Bu hatayı alıyorum sizce sorun ne olabilir ?
Şimdiden herkese teşekkür ederim.
textBox1.Text = frm1.dataGridView1.Rows[frm1.str].Cells[0].Value.ToString();
textBox2.Text = frm1.dataGridView1.Rows[frm1.str].Cells[1].Value.ToString();
comboBox1.Text = frm1.dataGridView1.Rows[frm1.str].Cells[2].Value.ToString();
textBox3.Text = frm1.dataGridView1.Rows[frm1.str].Cells[3].Value.ToString();
textBox4.Text = frm1.dataGridView1.Rows[frm1.str].Cells[4].Value.ToString();
textBox5.Text = frm1.dataGridView1.Rows[frm1.str].Cells[5].Value.ToString();
textBox6.Text = frm1.dataGridView1.Rows[frm1.str].Cells[6].Value.ToString();
textBox7.Text = frm1.dataGridView1.Rows[frm1.str].Cells[10].Value.ToString();
textBox8.Text = frm1.dataGridView1.Rows[frm1.str].Cells[11].Value.ToString();
textBox9.Text = frm1.dataGridView1.Rows[frm1.str].Cells[12].Value.ToString();
textBox10.Text = frm1.dataGridView1.Rows[frm1.str].Cells[7].Value.ToString();
textBox11.Text = frm1.dataGridView1.Rows[frm1.str].Cells[8].Value.ToString();
textBox12.Text = frm1.dataGridView1.Rows[frm1.str].Cells[9].Value.ToString();
textBox13.Text = frm1.dataGridView1.Rows[frm1.str].Cells[13].Value.ToString();
textBox14.Text = frm1.dataGridView1.Rows[frm1.str].Cells[14].Value.ToString();
dateTimePicker2.Text = frm1.dataGridView1.Rows[frm1.str].Cells[15].Value.ToString();
textBox16.Text = frm1.dataGridView1.Rows[frm1.str].Cells[16].Value.ToString();
textBox17.Text = frm1.dataGridView2.Rows[frm1.str].Cells[0].Value.ToString();
textBox18.Text = frm1.dataGridView2.Rows[frm1.str].Cells[1].Value.ToString();
textBox19.Text = frm1.dataGridView2.Rows[frm1.str].Cells[2].Value.ToString();
dateTimePicker1.Text = frm1.dataGridView2.Rows[frm1.str].Cells[4].Value.ToString();
textBox20.Text = frm1.dataGridView2.Rows[frm1.str].Cells[3].Value.ToString();
comboBox2.Text = frm1.dataGridView2.Rows[frm1.str].Cells[5].Value.ToString();
textBox15.Text = frm1.dataGridView2.Rows[frm1.str].Cells[6].Value.ToString();
textBox21.Text = frm1.dataGridView2.Rows[frm1.str].Cells[7].Value.ToString();
textBox22.Text = frm1.dataGridView2.Rows[frm1.str].Cells[8].Value.ToString();
textBox23.Text = frm1.dataGridView2.Rows[frm1.str].Cells[9].Value.ToString();
textBox24.Text = frm1.dataGridView2.Rows[frm1.str].Cells[10].Value.ToString();
textBox25.Text = frm1.dataGridView2.Rows[frm1.str].Cells[11].Value.ToString();
comboBox3.Text = frm1.dataGridView2.Rows[frm1.str].Cells[12].Value.ToString();
comboBox4.Text = frm1.dataGridView2.Rows[frm1.str].Cells[13].Value.ToString();
comboBox5.Text = frm1.dataGridView2.Rows[frm1.str].Cells[14].Value.ToString();