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