BlueSky.Services.UIControllerService.RefreshBothGrids C# (CSharp) Method

RefreshBothGrids() public method

public RefreshBothGrids ( System.IO.DataSource ds ) : void
ds System.IO.DataSource
return void
        public void RefreshBothGrids(DataSource ds)//A.
        {
            RefreshDataSet(ds); //Refresh DataGrid
            TabItem panel = GetTabItem(ds);//04Sep2014
            //04Sep2014 TabItem panel = docGroup.SelectedItem as TabItem;//we dont want active tab. Instead we need tab that matches the title "Dataset1"
            DataPanel datapanel = panel.Content as DataPanel;
            datapanel.sortcolnames = sortcolnames; //11Apr2014
            datapanel.sortorder = sortorder; //14Apr2014
            datapanel.Variables = ds.Variables; //Refresh Var grid
            datapanel.arrangeVarGridCols(); // arranging col positions
            datapanel.RefreshStatusBar();

            //04Aug2014 Remove old dialogs if cols changed in dataset
            DataSource removedds = panel.Tag as DataSource;
            string semiKey = removedds.FileName + removedds.Name;
            RemoveOldSessionDialogsFromMemory(semiKey);
        }
        //05Dec2013 refreshing status bar for showing split info