Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DataGridViewComboBoxColumn grdCol = new DataGridViewComboBoxColumn();
- grdCol.DataSource = discountTbl;
- grdCol.DataPropertyName = "DiscountId";
- grdCol.DisplayMember = "DiscountName";
- grdCol.HeaderText = "Discount";
- grdCol.Name = "DiscountId";
- grdCol.ValueType = typeof(System.Int32);
- dgv.Columns.Add(grdCol);
Add Comment
Please, Sign In to add comment