上一页 1 2 3 4 5 6 ··· 36 下一页
摘要: 1, 在winform项目中 Program.cs 文件里添加 using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Ta 阅读全文
posted @ 2024-06-18 16:05 龙卷风吹毁停车场 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 找到问题: 是应为a56爆大奖在线娱乐在 ExecuteReader方法 finally中加入了 conn.close(); 导致了a56爆大奖在线娱乐UI层在使用Read的时候, 数据库的链接已经被 finally 里面的conn.close()关闭了 阅读全文
posted @ 2024-06-18 15:16 龙卷风吹毁停车场 阅读(3) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 事务处理 /// </summary> /// <param name="sqlList">sql语句数组</param> /// <returns></returns> /// <exception cref="Exception"></exception> p 阅读全文
posted @ 2024-06-18 09:13 龙卷风吹毁停车场 阅读(1) 评论(0) 推荐(0) 编辑
摘要: ContextMenuStrip属性: 当用户点击鼠标右键时(设置和contextMenuStrip挂钩) MultiSelect属性 是否可以多行选择 SelectionMode属性: 设置选中方式,比如是否选中一整行(设置为FullRowSelect) Dock属性: 设置显示位置 AllowU 阅读全文
posted @ 2024-06-17 18:09 龙卷风吹毁停车场 阅读(3) 评论(0) 推荐(0) 编辑
摘要: BindingSource bindingSource = new BindingSource(); bindingSource.DataSource = products1; this.dataGridView1.DataSource = bindingSource; 然后: 你该怎么操作怎么操作 阅读全文
posted @ 2024-06-17 09:22 龙卷风吹毁停车场 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1. 将 EnableHeadersVisualStyles 设置为 false, 自定义的样式才会显示2. 将ColumnHeadersDefaultCellStyle 样式按照你自己的需求设置(可以设置表头背景颜色,表头字体样式,等)3, 设置 表头单元格边框样式 ColumnHeadersBo 阅读全文
posted @ 2024-06-16 11:25 龙卷风吹毁停车场 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1. 安装两个 nuget 包 2. 创建 log4net.config 文件 ,选中 文件鼠标右键,选择属性->复制到输出目录 修改为 始终复制 <?xml version="1.0" encoding="utf-8" ?> <configuration> <!--只保留创建日期是最近1天的--> 阅读全文
posted @ 2024-06-15 10:03 龙卷风吹毁停车场 阅读(4) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using 阅读全文
posted @ 2024-06-14 19:28 龙卷风吹毁停车场 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1. 将从数据库拿到的DataSet数据集转为DataTable类型 DataTable dt = SqlHelper.GetData() 使用: RowFilter来实现筛选功能 赛选出ClassId为a56爆大奖在线娱乐指定 ClassId的数据 dt.DefaultView.RowFilter = "Class 阅读全文
posted @ 2024-06-14 12:35 龙卷风吹毁停车场 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 语法: public static DataTable ExecuteTable(string sql) { using (SqlConnection conn = new SqlConnection(connStr)) { conn.Open(); SqlCommand cmd = new Sql 阅读全文
posted @ 2024-06-14 09:34 龙卷风吹毁停车场 阅读(2) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 36 下一页