EDN Admin
Well-known member
<span style="font-family:Verdana; font-size:small; line-height:normal I have two forms.Main form is Form1 and another form is named Duzenle which i intend to use for editing data of dataGridView1 of Form1.The problem is I cant reach dataGridView1 from
Duzenle. I want to reach dataGridView1 when loading Duzenle.I tried this but didnt work.TextBox1 is member of Duzenle.
<span style="font-family:Verdana; font-size:small; line-height:normal
<pre class="prettyprint" style=" private: System::Void Duzenle_Load(System::Object^ sender, System::EventArgs^ e) {
Form1 ^ f1 = gcnew Form1();
textbox1->Text = f1->dataGridView1->CurrentRow->Cells[0]->Value->ToString();
}[/code]
<br/>
<span style="font-family:Verdana; font-size:small; line-height:normal
<br/>
View the full article
Duzenle. I want to reach dataGridView1 when loading Duzenle.I tried this but didnt work.TextBox1 is member of Duzenle.
<span style="font-family:Verdana; font-size:small; line-height:normal
<pre class="prettyprint" style=" private: System::Void Duzenle_Load(System::Object^ sender, System::EventArgs^ e) {
Form1 ^ f1 = gcnew Form1();
textbox1->Text = f1->dataGridView1->CurrentRow->Cells[0]->Value->ToString();
}[/code]
<br/>
<span style="font-family:Verdana; font-size:small; line-height:normal
<br/>
View the full article