随笔分类 - DataGridView
摘要:https://blog.csdn.net/update7/article/details/80066231 DataGridView控件是微软预先写好的一个显示数据的控件,功能非常强大,可以显示来自数据库表的数据和XML等其他来源的数据。最近在做一个迷你超市管理系统,要大量用到这个控件。所以花时间
阅读全文
摘要:DataGridView单元格显示密码 private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { if (e.ColumnIndex == 1) { if (e.
阅读全文
摘要:C# DataTable和DataRelation form2.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawin
阅读全文
摘要:RowPrePaint事件: private void dataGridView1_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) { if ("不存在" == this.dataGridView1.Rows[e.RowI
阅读全文