
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 · 3359 阅读 · 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 · 3036 阅读 · 0 评论