DataGridView 를 DataTable 크기에 맞춰 조정 하고 싶을 때
dataGridView.Height = dataGridView.Rows.GetRowsHeight(DataGridViewElementStates.None) + dataGridView.ColumnHeadersHeight + 2;
dataGridView.Width = dataGridView.Columns.GetColumnsWidth(DataGridViewElementStates.None) + dataGridView.RowHeadersWidth + 2;
'C#' 카테고리의 다른 글
[C#] 서버 상태 체크 (0) | 2016.08.31 |
---|---|
[Windows Service] 디버깅 (0) | 2016.08.05 |
[Windows Service] 파일 읽기 (0) | 2016.07.14 |
[C#] 파일 경로 (0) | 2016.07.14 |
[C#] ini 파일 모든 섹션 & 키 값 읽기 (0) | 2016.07.08 |