![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据源
brian0031
这个作者很懒,什么都没留下…
展开
-
C#中datagridview添加行
datagridview添加行,在已经绑定数据源的情况下(否则会报错误: 当控件被数据绑定时,无法以编程方式向 DataGridView 的行集合中添加行)方法一:DataRow dr = ((DataTable)dataGridView1.DataSource).NewRow();((DataTable)dataGridView1.DataSource).Rows.Add(dr)原创 2011-10-10 16:50:25 · 2186 阅读 · 0 评论 -
c#中combox绑定datatable数据源
combox绑定datatable数据源string _str2 = string.Empty;_str1 = string.Format("select distinct p_o, p_id from [QC_Angel] where Product='{0}' ",textBox1.Text.Trim());comboBox1.DataSource = _dt;comboBox原创 2012-05-21 15:23:02 · 4345 阅读 · 0 评论