Access member from another class

Feb 22 2011 5:24 AM
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)