摘要: private void dgvWookType_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) { SolidBrush b = new SolidBrush(this.dgvWookType.RowHeadersDefaultCellStyle.ForeColor); e.Graphics.DrawString((e.RowIndex + 1).ToString(System.Globalization.CultureInfo.CurrentU... 阅读全文
posted @ 2012-01-25 14:40 kumat 阅读(847) 评论(0) 推荐(0) 编辑
摘要: DataSet是一个或多个DataTable的组合。DataGridView的数据源应该对应到某个DataTable。this.DataGridView.DataSource = ds.tables[0]; 阅读全文
posted @ 2012-01-25 14:11 kumat 阅读(468) 评论(0) 推荐(0) 编辑