摘要:
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... 阅读全文
摘要:
// 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... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication{ public class CustomDataGridView : DataGridView { protected override bool P... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication{ public class CustomDataGridView : DataGridView { protected override bool P... 阅读全文
摘要:
void repositoryItemTextEdit2_Leave(object sender, System.EventArgs e) { DataTable table1 = new DataTable(); System.Data.SqlClient.SqlConnection sqlcon = new System.Data.SqlClient.SqlConnection(); sqlc... 阅读全文
摘要:
System.Reflection.Missing miss = System.Reflection.Missing.Value; Microsoft.Office.Interop.Excel.Application excel = new Microsoft.Office.Interop.Excel.ApplicationClass(); Microsoft.Office.Interop.Ex... 阅读全文
摘要:
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... 阅读全文