标签:
private void dataGridView1_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e) { e.Row.HeaderCell.Value = string.Format("{0}", e.Row.Index + 1); }
显示行号
dataGridViewX操作
原文地址:http://www.cnblogs.com/wangchuang/p/4641053.html