private void LoanViewForm_Load(object sender, EventArgs e) { loanGrid.DataSource = accountLoans.Summary; GridFormatter gridFormatter = new GridFormatter(loanGrid); gridFormatter.DefaultFormat(); }
private void PaymentHistory_Load(object sender, EventArgs e) { loadPaymentHistory(); GridFormatter formatter = new GridFormatter(historyGrid); formatter.DefaultFormat(); orderGridColumns(); }
private void FutureCashFlowForm_Load(object sender, EventArgs e) { NextMonthPayments payments = new NextMonthPayments(DatabaseFactory.Default); nextPaymentsGrid.DataSource = payments.Summary; GridFormatter gridFormatter = new GridFormatter(nextPaymentsGrid); gridFormatter.DefaultFormat(); totalGrid.DataSource = payments.SummaryTotal(nextPaymentsGrid.DataSource as DataTable); gridFormatter.TotalGridFormat(totalGrid); }
private void formatGrids() { GridFormatter summaryFormatter = new GridFormatter(summaryGrid); summaryFormatter.DefaultFormat(); orderGridColumns(summaryGrid); GridFormatter totalFormatter = new GridFormatter(totalGrid); totalFormatter.TotalGridFormat(); orderGridColumns(totalGrid); }