DataGridView添加模版列

DataGridViewComboBoxColumn d=new DataGridViewComboBoxColumn();            d.CellTemplate = new DataGridViewComboBoxCell();            dataGridView1.Columns.Insert(0, d);            d.HeaderText = "性别";            d.Items.Add("男");            d.Items.Add("女"); 

posted @ 2007-12-26 15:20  威风剑  阅读(551)  评论(0编辑  收藏  举报