public void LoadStrand() { listStrand.Clear(); listStrand = strand.Load(); foreach (var item in listStrand) { cmbStrand.Items.Add(item.StrandName); } }
public void LoadRecords() { //clear list dgvStrands.Rows.Clear(); strands.Clear(); //pass value to list strands = strand.Load(); //loop through load it to list view foreach (var item in strands) { //Load to datagridView dgvStrands.Rows.Add(item.Id, item.StrandName, item.StrandDesc); } }//End LoadRecords()
public void LoadStrand() { //clear list //dgvDiscount.Rows.Clear(); cmbStrand.Items.Clear(); strands.Clear(); //pass value to list strands = strand.Load(); //loop through load it to list view foreach (var item in strands) { //Load to datagridView //dgvDiscount.Rows.Add(item.Id, item.DiscountName, item.DiscountAmount); cmbStrand.Items.Add(item.StrandName); } }//End LoadRecords()