private void LoadOptions() { ChartOfAccounts clsChartOfAccount = new ChartOfAccounts(); System.Data.DataTable dtList = clsChartOfAccount.ListAsDataTable("ChartOfAccountID", SortOption.Ascending); clsChartOfAccount.CommitAndDispose(); cboChartOfAccountAPTracking.DataTextField = "ChartOfAccountNameComplete"; cboChartOfAccountAPTracking.DataValueField = "ChartOfAccountID"; cboChartOfAccountAPTracking.DataSource = dtList.DefaultView; cboChartOfAccountAPTracking.DataBind(); cboChartOfAccountAPTracking.SelectedIndex = cboChartOfAccountAPTracking.Items.Count - 1; cboChartOfAccountAPBills.DataTextField = "ChartOfAccountNameComplete"; cboChartOfAccountAPBills.DataValueField = "ChartOfAccountID"; cboChartOfAccountAPBills.DataSource = dtList.DefaultView; cboChartOfAccountAPBills.DataBind(); cboChartOfAccountAPBills.SelectedIndex = cboChartOfAccountAPBills.Items.Count - 1; cboChartOfAccountAPFreight.DataTextField = "ChartOfAccountNameComplete"; cboChartOfAccountAPFreight.DataValueField = "ChartOfAccountID"; cboChartOfAccountAPFreight.DataSource = dtList.DefaultView; cboChartOfAccountAPFreight.DataBind(); cboChartOfAccountAPFreight.Items.Add(new ListItem("Not Applicable", "0")); cboChartOfAccountAPFreight.SelectedIndex = cboChartOfAccountAPFreight.Items.Count - 1; cboChartOfAccountAPVDeposit.DataTextField = "ChartOfAccountNameComplete"; cboChartOfAccountAPVDeposit.DataValueField = "ChartOfAccountID"; cboChartOfAccountAPVDeposit.DataSource = dtList.DefaultView; cboChartOfAccountAPVDeposit.DataBind(); cboChartOfAccountAPVDeposit.Items.Add(new ListItem("Not Applicable", "0")); cboChartOfAccountAPVDeposit.SelectedIndex = cboChartOfAccountAPVDeposit.Items.Count - 1; cboChartOfAccountAPContra.DataTextField = "ChartOfAccountNameComplete"; cboChartOfAccountAPContra.DataValueField = "ChartOfAccountID"; cboChartOfAccountAPContra.DataSource = dtList.DefaultView; cboChartOfAccountAPContra.DataBind(); cboChartOfAccountAPContra.Items.Add(new ListItem("Not Applicable", "0")); cboChartOfAccountAPContra.SelectedIndex = cboChartOfAccountAPContra.Items.Count - 1; cboChartOfAccountAPLatePayment.DataTextField = "ChartOfAccountNameComplete"; cboChartOfAccountAPLatePayment.DataValueField = "ChartOfAccountID"; cboChartOfAccountAPLatePayment.DataSource = dtList.DefaultView; cboChartOfAccountAPLatePayment.DataBind(); cboChartOfAccountAPLatePayment.Items.Add(new ListItem("Not Applicable", "0")); cboChartOfAccountAPLatePayment.SelectedIndex = cboChartOfAccountAPLatePayment.Items.Count - 1; }