public GLSearch() { InitializeComponent(); List <GLAccount> GLAccounts = new DataLayer.Repostiory().GetAll(); dgGL.ItemsSource = GLAccounts; }