string vlaue="12,13,15,16,14"
string[] parts = vlaue.Split(',');
string vlaue="12,13,15,16,14"; DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn("vlaue")); dt = vlaue.Split(new string[]{","}, StringSplitOptions.RemoveEmptyEntries) .Select(x => dt.LoadDataRow(new object[]{x}, false)) .CopyToDataTable(); combobox1.DataSource = dt; combobox1.ValueMember = "vlaue"; combobox1.DisplayMember = "vlaue";
string value = "12,15,16,14,18"; string[] combovalue = value.Split(','); foreach (string itemvalue in combovalue) { cmb.Items.Add(itemvalue); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)