摘要: 方法①:使用 ValidatingEditor 事件(一般用于对整个GridView内的文本框进行数据验证) 当单元格输入格式错误时,直接在该行下方提示,代码如下: using System.Text.RegularExpressions; //注意添加引用 private void gridVie 阅读全文
posted @ 2017-10-30 14:39 丨QAQ丨 阅读(2605) 评论(3) 推荐(3) 编辑
摘要: cklstStatisticalTime :CheckedComboBoxEdit 控件名_statisticalTime :选中项内容 //修改默认选中 foreach (CheckedListBoxItem item in cklstStatisticalTime.Properties.Items) { if (item.Description.ToString() == _stat... 阅读全文
posted @ 2017-10-30 14:39 丨QAQ丨 阅读(3767) 评论(0) 推荐(0) 编辑
摘要: 方法①: 打开设计器(Run Designer),选择左侧Repository,点击In-place Editor Repository(内嵌编辑器),点击Add右侧的下拉菜单,选择要添加的控件,添加后可在右侧编辑控件的属性。 然后选中左侧Main中的Columns,选中要添加控件的列,再选中属性栏 阅读全文
posted @ 2017-10-30 14:38 丨QAQ丨 阅读(3636) 评论(0) 推荐(1) 编辑
摘要: 相关链接:https://q.cnblogs.com/q/88667/#a_203370 阅读全文
posted @ 2017-10-30 14:37 丨QAQ丨 阅读(1039) 评论(0) 推荐(0) 编辑