Tip !!!/C# tip
DataGridView 선택 Row Index 얻기
MCNT
2022. 7. 27. 00:50
DataGridView의 Index 얻는법
DataGridView Control Name : dataGrid
int index=dataGrid.SelectedRows[0].Index;
// Row가 아니고 Row[0]인 이유는 MultiSelect도 사용할 수 있기 때문이다.
Index를 설정 하는 법
dataGrid.CurrentCell = dataGrid.Rows[rowIndex].Cells[0];
// row에는 속성이 없고 Cells에만 있음