나는 창 형태로 DataGridView 컨트롤에서 선택한 행의 열 이름에 액세스하기 위해 노력하고있어,하지만 난 다음 코드의 ArgumenOutOfRange 예외 받고 있어요 :ArgumentOutOfRange 예외
MessageBox.Show(dataGridView1.SelectedColumns[dataGridView1.CurrentCell.ColumnIndex].ToString());
가 생산 :
를ArgumentOutOfRangeException was unhandled
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
아무도이 오류에서 어떻게 극복 할 수 있습니까?
답장을 보내 주셔서 감사합니다. – SauDard