// Custom constructor to pass expense report data public ExpenseReportPage(object data) : this() { AccessDatabase adb = new AccessDatabase(); DataGrid.DataContext = adb.GetExpenses(ConnectionString.Text); this.DataContext = data; }