/// /// DataGridView 의 RowHeader 에 일련번호 자동생성 /// /// DataGridView 컨트롤 /// 이벤트정보 static void DGV_AutoRowIndex(object sender, DataGridViewRowPostPaintEventArgs e) { DataGridView dgv = sender as DataGridView; try { if (dgv != null && dgv.Rows.Count > 0 && e.RowIndex >= 0) { String rowIdx = (e.RowIndex + 1).ToString(); StringFormat centerFormat = new StringFormat() { Alignment = StringAlignment.Ce..