摘要:
第一种:DataSet ds=new DataSet (); this.dataGridView1.DataSource=ds.Table[0]; 第二种:DataTable dt=new DataTable(); this.dataGridView1.DataSource=dt; 第三种... 阅读全文
摘要:
ref:http://blog.csdn.net/xieyufei/article/details/9769631方法一:网上最常见的做法是用DataGridView的RowPostPaint事件在RowHeaderCell中绘制行号: 1 private void dgGrid_RowPostPa... 阅读全文