![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
text
brian0031
这个作者很懒,什么都没留下…
展开
-
得到comboBox的值变为字符串(string)
得到comboBox的值变为字符串(string) int m = 1; string cbx = comboBox1.GetItemText(comboBox1.Items[m - 1]).Trim(); 或 string cbx = comboBox1.GetItemText(comboBox1.SelectedItem).Trim();原创 2012-05-24 14:08:06 · 3224 阅读 · 0 评论 -
dataGridView中的错误提示,产生或取消
private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e) { if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value == null) //不能省略,如果省略,单元格编辑时按下esc会报错“未将对象引用设置到对象原创 2012-11-08 22:38:21 · 2824 阅读 · 0 评论