• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
小爪微凉
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3

2012年10月25日

从LIst查询数据生成新的List
摘要: var query = from x in List select new Bank { ID = x.ID, ParentID = x.ParentID, Name = x.Name, LayerCode = x.LayerCode, CreateDateTime = x.CreateDateTime, CreatePerson = x.CreatePerson, ChangeDateTime = x.ChangeDateTime, ChangePerson = x.ChangePerson, IsEnabled = x.IsEnabled, IsDelete = x.IsDelete, . 阅读全文
posted @ 2012-10-25 09:16 小爪微凉 阅读(236) 评论(0) 推荐(0)
 
 

2012年10月24日

c#读取XML信息
摘要: XmlDocument doc = new XmlDocument(); doc.Load(AppDomain.CurrentDomain.BaseDirectory + "//WcfServicesUrl.config"); XmlNode node = doc.GetElementsByTagName("appSettings").Item(0).FirstChild; XmlElement ele = (XmlElement)node; string WcfServiceUrl = ele.GetAttribute("value" 阅读全文
posted @ 2012-10-24 15:50 小爪微凉 阅读(148) 评论(0) 推荐(0)
 
 

2012年10月23日

GridControl怎么获取最后一行
摘要: var count = this.gridView_RightControl.RowCount; this.gridView_RightControl.SelectRow(count - 1); this.gridView_RightControl.FocusedRowHandle = count - 1; 阅读全文
posted @ 2012-10-23 16:58 小爪微凉 阅读(459) 评论(0) 推荐(0)
 
 

2012年10月13日

LookUpEdit使用小记
摘要: 最近在开发时,使用了Devpress的控件.其中对有下拉框的Lookupedit控件使用较多.为了记住其用法,特写此文,希望对自己和其他同仁有所帮助: 绑定数据源: lookUpEdit1.Properties.ValueMember = 实际要用的字段; lookUpEdit1.Properties.DisplayMember =要显示的字段; lookUpEdit1.Properties.DataSource = 数据源; 判断是否选择下拉框: if(this.lookUpEdit1.Editvalue==null) { //提示信息,说明未选择下拉框 ... 阅读全文
posted @ 2012-10-13 15:11 小爪微凉 阅读(186) 评论(0) 推荐(0)
 
Excell向数据库导入数据问题
摘要: /// <summary> /// 导入Excle主控方法 /// </summary> private void ImportMain() { try { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.CheckFileExists = true; openFileDialog.CheckPathExists = true; openFileDialog.Filter = "excel filer(*.xls)|*.xls"; if (openFileDia 阅读全文
posted @ 2012-10-13 10:05 小爪微凉 阅读(166) 评论(0) 推荐(0)
 
 
上一页 1 2 3

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3