private void PopulateGrid()
        {
            var nhi = new NHibernateInventory();
            var list = (List<Inventory>) nhi.ExecuteICriteriaOrderBy("Builder");
            dataGridInventory.ItemsSource = list;

            if (list != null)
            {
                dataGridInventory.Columns[0].Visibility = Visibility.Hidden;
                dataGridInventory.Columns[1].Visibility = Visibility.Hidden;
            //                dataGridInventory.Columns[8].Visibility = Visibility.Hidden;
            }
        }
        private void PopulateDataGrid()
        {
            var nhi = new NHibernateInventory();
            IList<Inventory> list = nhi.ExecuteICriteriaOrderBy("Builder");
            dataGridInventory.ItemsSource = list;

            if (list != null)
                HideColumnsWhichContainTechnicalInformation();
        }