1
Answer

Access member from another class

Hi everyone,

How can i access member from another class?

i have two forms. on firs form i have a dataGridViewer.

So i want to access DataSource of dataGridView from Form2!

How can i do that, because if i use

Form1 f = new Form();
f.DataGridView1.DataSource - is empty!

I allso try to use OpenForms, but the result is tha same!

Thanks
 
Answers (1)