そのようなコンボボックスを塗りつぶします。 firtsにしたい、nullだった。どうすればいいの?コンボボックスの最初の値はnullにする必要があります
private void txtLoadname_DropDown(object sender, EventArgs e)
{
HashSet<string> LoadName = new HashSet<string>();
for (int i = 0; i < dataGridView1.Rows.Count - 1; i++)
{
LoadName.Add(dataGridView1.Rows[i].Cells["loadNameDataGridViewTextBoxColumn"].Value.ToString());
}
txtLoadname.DataSource = LoadName.ToList();
}
をなぜ私が求めることができますか? – Vishal