/// <summary> /// Populates the list of items in the gridItemsList /// </summary> private void PopulateItemList() { Balance bal = new Balance(); int storeId = (cboStores.SelectedValue != null) ? Convert.ToInt32(cboStores.SelectedValue) : 1; dtDate.Value = DateTime.Now; dtDate.CustomFormat = "MM/dd/yyyy"; DateTime dtCurrent = ConvertDate.DateConverter(dtDate.Text); gridItemsList.DataSource = bal.BalanceAllItems(storeId,dtCurrent.Year,dtCurrent.Month,_selectedType); if (ckExclude.Checked) gridItemListView.ActiveFilterString = "[Received] != '0'"; }