none
datatgridview里的列里怎么添加combobox RRS feed

答案

  • DataGridViewComboBoxColumn column = dataGridView1.Columns["ComboBoxColumnName"] as DataGridViewComboBoxColumn;
    column.DataSource = {The dataSource you want to bound};
    column.ValueMember= "{Value member}";
    column.DisplayMember = "{Display member}";
    

    2012年8月21日 6:15

全部回复