C#空间

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2010年9月22日

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using DevExpress.XtraTab... 阅读全文
posted @ 2010-09-22 22:49 小海洋 阅读(3867) 评论(5) 推荐(0) 编辑

2010年8月2日

摘要: // Fill the DataSet.//单表查询DataSet ds = new DataSet();ds.Locale = CultureInfo.InvariantCulture;FillDataSet(ds);DataTable orders = ds.Tables["SalesOrderHeader"];var query = from order in orders.AsEnumer... 阅读全文
posted @ 2010-08-02 23:10 小海洋 阅读(213) 评论(0) 推荐(0) 编辑

2010年7月17日

摘要: using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication{ public class CustomDataGridView : DataGridView { protected override bool P... 阅读全文
posted @ 2010-07-17 22:58 小海洋 阅读(638) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication{ public class CustomDataGridView : DataGridView { protected override bool P... 阅读全文
posted @ 2010-07-17 22:56 小海洋 阅读(1497) 评论(0) 推荐(0) 编辑

2010年7月13日

摘要: void repositoryItemTextEdit2_Leave(object sender, System.EventArgs e) { DataTable table1 = new DataTable(); System.Data.SqlClient.SqlConnection sqlcon = new System.Data.SqlClient.SqlConnection(); sqlc... 阅读全文
posted @ 2010-07-13 23:58 小海洋 阅读(930) 评论(0) 推荐(0) 编辑

2010年4月17日

摘要: System.Reflection.Missing miss = System.Reflection.Missing.Value; Microsoft.Office.Interop.Excel.Application excel = new Microsoft.Office.Interop.Excel.ApplicationClass(); Microsoft.Office.Interop.Ex... 阅读全文
posted @ 2010-04-17 18:51 小海洋 阅读(2615) 评论(0) 推荐(2) 编辑

2010年4月5日

摘要: DataView dv = new DataView(db1DataSet.Tables["表1"]); dv.ApplyDefaultSort = true; dv.Sort = "dh"; while (dhh>0) { if (dv.Find(dhh) < 0) { //dh = i; break; } else { dhh = 1 + dhh; } } d["dh"] = dh... 阅读全文
posted @ 2010-04-05 20:40 小海洋 阅读(259) 评论(0) 推荐(1) 编辑