摘要: protected override CreateParams CreateParams //防止界面闪烁 { get { CreateParams paras = base.CreateParams; paras.ExStyle |= 0x02000000; return paras; } } 阅读全文
posted @ 2023-12-11 10:29 188不打篮球 阅读(77) 评论(0) 推荐(0)
摘要: using System; using System.IO; using System.Xml.Linq; using Aspose.Cells; class Program { static void Main(string[] args) { string path = "C:\Users\13 阅读全文
posted @ 2023-11-21 09:01 188不打篮球 阅读(612) 评论(1) 推荐(0)
摘要: C#,如何提高DataGridView控件的显示效率?一次要管理100万条记录,如何才能不卡?不仅仅是虚拟模式的问题。 (1)采用virtualmode,不要使用datagridview1.datasource = dt 如何使用虚拟模式,参见https://blog.csdn.net/qq_301 阅读全文
posted @ 2023-05-10 10:01 188不打篮球 阅读(324) 评论(0) 推荐(0)
摘要: private void dgvScanFai_SortCompare(object sender, DataGridViewSortCompareEventArgs e) { if (e.Column.Name == "Time") { string cellValue1 = e.CellValu 阅读全文
posted @ 2023-05-08 11:14 188不打篮球 阅读(404) 评论(0) 推荐(0)
摘要: DataGridViewRow dr = new DataGridViewRow(); dr.CreateCells(dgv); //dr.Cells[0].Value = "h1"; //dr.Cells[1].Value = (++c); dr.SetValues(body.Split(",") 阅读全文
posted @ 2023-05-08 09:06 188不打篮球 阅读(816) 评论(0) 推荐(0)