WinForms윈폼 Column Width Autosize
페이지 정보
작성자 tomleee 작성일 2024-01-19 10:10 조회 52회 댓글 0건본문
관련링크
현재 사용중인 columnWidth autosize를 위한 코드입니다.
for (int i = 0; i < dt.Columns.Count; i++)
{
Column crntCol;
float sizecol;
crntCol = fpSpreadRFQOrder.ActiveSheet.Columns[i];
sizecol = crntCol.GetPreferredWidth() + 10;
crntCol.Width = sizecol;
}
이렇게 실행 했을시, 실제 필요한 데이터가 아닌 header row를 기준으로 column width가 설정되는데, header row를 제외한 그다음 row 부터 autosize를 설정하는 방법이 있을까요?
댓글목록
등록된 댓글이 없습니다.