I've got a method in MainWindow class. I need to call a method that is situating in it. The other class is using for datagrid binding so I dont know its name.
I've got http://www.codeproject.com/KB/WPF/WPFDataGridExamples/classdiagram_small.png class inheritance. I use it to modify data in datagrid. I've got 1 more datagrid that has related data(I use grids to show DB tables). I need to call datagrid by its name to change its itemsource. I can do it from mainfrom class. This class can see datagrid's name but first datagrid cant see other datagrid