Example #1
0
        private void showGrid()
        {
            ExpenseHeadViewModel expenseHeadViewModel = new ExpenseHeadViewModel();
            var showExpense = expenseHeadViewModel.GetExpenseHead();

            dg_ExpenseHead.DataSource = showExpense.ToList();
        }
Example #2
0
        public static void FillExpenses(ComboBox cmb)
        {
            ExpenseHeadViewModel expenseViewModel = new ExpenseHeadViewModel();

            cmb.DisplayMember = "ExpenseHeadName";
            cmb.ValueMember   = "ExpenseHeadId";
            cmb.DataSource    = expenseViewModel.GetExpenseHead().ToList();
        }