private void LoadBudget(int projID) { ListViewItem lvi; SqlDataReader dr; CBBudget b = new CBBudget(); int budID; dr = CBBudget.GetListByProject(projID); lvwBudgets.Items.Clear(); while (dr.Read()) { budID = Convert.ToInt32(dr["ID"]); b.Load(budID); lvi = new ListViewItem(); lvi.Text = b.ID.ToString(); lvi.SubItems.Add(b.GetCleanNumber()); lvwBudgets.Items.Add(lvi); } }