Guest User

Untitled

a guest
Jul 11th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. DataGridViewComboBoxColumn grdCol = new DataGridViewComboBoxColumn();
  2. grdCol.DataSource = discountTbl;
  3. grdCol.DataPropertyName = "DiscountId";
  4. grdCol.DisplayMember = "DiscountName";
  5. grdCol.HeaderText = "Discount";
  6. grdCol.Name = "DiscountId";
  7. grdCol.ValueType = typeof(System.Int32);
  8.  
  9. dgv.Columns.Add(grdCol);
Add Comment
Please, Sign In to add comment