- 博客(11)
- 收藏
- 关注
原创 C#释放内存
释放内存[DllImport("kernel32.dll", EntryPoint = "SetProcessWorkingSetSize")] public static extern int SetProcessWorkingSetSize(IntPtr process, int minSize, int maxSize); /// <summary> /// 释放内存 /// </summary
2021-03-03 11:45:05 345
原创 C#将gridview导出Excel表方法
将gridview导出Excel表方法 #region 导出Excel表方法 /// <summary> /// 导出Excel表方法 /// </summary> /// <param name="gridview">当前gridview表</param> public static void ExportExcelMethod(DevExpress.XtraGrid.Grid
2021-03-03 11:42:48 871
原创 C#将DateTime时间格式转换为Unix时间戳格式
将DateTime时间格式转换为Unix时间戳格式/// <summary> /// 将DateTime时间格式转换为Unix时间戳格式 /// </summary> /// <param name="time">时间</param> /// <returns>long</returns> public static long Conv
2021-03-03 11:40:55 490
原创 C#将DataTable数据导出到Excel表
将DataTable数据导出到Excel表private Microsoft.Office.Interop.Excel.Application m_xlApp = new Microsoft.Office.Interop.Excel.Application();#region 将DataTable数据导出到Excel表/// /// 将DataTable数据导出到Excel表/// /// 要导出的DataTable/// Excel的保存路径及名称public void DataTable
2021-03-03 11:38:43 856
原创 C#将Excel转换成DataTable
C#将Excel转换成DataSet/// <summary> /// 将excel转换成dataset /// </summary> /// <param name="path">excel路径</param> /// <returns></returns> public DataTable ExcelToDS(string path)
2021-03-03 11:34:49 395
原创 C#将XmlDocument转化为string
将XmlDocument转化为string/// <summary> /// 将XmlDocument转化为string /// </summary> /// <param name="xmlDoc"></param> /// <returns></returns> public string ConvertXmlToString(XmlDocument
2021-03-03 11:28:44 1055
原创 C#dev中给LookUpEdit赋值
using (DataTable ddt = new DataTable()) { DataColumn ddc = new DataColumn(); ddc.ColumnName = "Code"; ddc.Caption = "Code"; ddt.Columns.Add(ddc); DataColumn dnameDc
2020-07-02 16:18:32 1337
原创 C#设置应用程序开机自启
RegistryKey rk = Registry.LocalMachine; RegistryKey rk2 = rk.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run"); rk2.SetValue("SQZ_ExportOrder", path); rk2.Close(); rk.Close();
2020-07-02 16:12:26 216
原创 C#对gridview添加行号显示
private void gridView1_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { if (e.Info.IsRowIndicator && e.RowHandle > -1) { e.Info.DisplayText.
2020-07-02 16:06:35 893
原创 C#获取gridview选择check打勾行数据
gridView2.FocusedRowHandle = -1;//取消行编辑模式 gridView2.Columns["CHECKED"].OptionsColumn.AllowEdit = false; gridView2.Columns["CHECKED"].OptionsColumn.ReadOnly = true; DataTable dt = (DataTable)gridView2.GridControl.Da...
2020-07-02 16:02:08 1197
原创 C#更改gridview焦点列
this.gridView2.FocusedColumn = gridView2.Columns["cSOCode"]; gridView2.ShowEditor();
2020-07-02 15:54:39 600
DDAS.DbUtilities.dll
2023-05-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人