// get users from database and fill list public void FillUsers() { DataTable dtUsers = DBAccess.GetUsers(); foreach (DataRow dr in dtUsers.Rows) { cUser oUser = new cUser(); oUser.Load(dr); this.Add(oUser); } }