DataGridViewComboBoxColumn cbCol = new DataGridViewComboBoxColumn(); cbCol.DefaultCellStyle.NullValue = "--Select--"; cbCol.FlatStyle = FlatStyle.Popup; cbCol.DataSource = new functions_sqls().select("select distinct l.list_value vm, l.long_description dm from lists l"); cbCol.DisplayMember = "dm"; cbCol.ValueMember = "vm"; cbCol.Name = Col.ToString(); dgv1.Columns.Add(cbCol);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)