摘要: int focuseHandle = gv.FocusedRowHandle; GridColumn column = gv.Columns["plan_id"]; if (column != null) { if (focuseHandle >= 0) { var topRow = gv.GetR 阅读全文
posted @ 2020-04-23 11:28 倔强木偶 阅读(2624) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 查找并勾选某个元素方法-按值查找 /// </summary> void SetItemCheckedByValue(CheckedListBoxControl clbc, object value) { ListBoxFindItemDelegate lbfid 阅读全文
posted @ 2019-11-14 10:10 倔强木偶 阅读(559) 评论(0) 推荐(0) 编辑
摘要: IList pimList = gv_PisInfo.DataController.GetAllFilteredAndSortedRows(); //List pimList = gc_PisInfo.DataSource as List; if (pimList == null) return; ... 阅读全文
posted @ 2018-10-12 10:42 倔强木偶 阅读(1171) 评论(0) 推荐(0) 编辑
摘要: D盘格式化删除分区后打开word一直报错,发现下面配置得一个参数仍是d盘得目录,修改后正常。 解决方法: 开始>运行>regedit, 然后定位到HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User She 阅读全文
posted @ 2018-07-22 15:44 倔强木偶 阅读(1239) 评论(0) 推荐(0) 编辑
摘要: 1. 读取xml文件方法 /// <summary> /// 将xml转为Datable /// </summary> public static DataTable XmlToDataTable(string xmlStr) { if (!string.IsNullOrEmpty(xmlStr)) 阅读全文
posted @ 2017-12-01 11:48 倔强木偶 阅读(8472) 评论(2) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-12-01 08:47 倔强木偶 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1. 首先是创建一个ExcelHelper类,起初网上找的,基本上能实现读取功能,但总是会多一列空的,最后把if (cellValue!=null)换成if (!string.IsNullOrEmpty( cellValue)),解决问题,代码如下: using System; using Syst 阅读全文
posted @ 2017-12-01 08:35 倔强木偶 阅读(4515) 评论(0) 推荐(0) 编辑