단 시간이 너무 걸릴 수 있다.


가장 좋은 방법은 컬럼명, 길리, 형식을 미리 모두 정하는 것이다.

이러면 빠르게 binding 된다.


float fWidth = 0;

foreach (FarPoint.Win.Spread.Column col in grdMain.ActiveSheet.Columns)

{
        col.Width = col.Label.Length * 8;
        fWidth = col.Width;
       col.Width = fWidth > col.GetPreferredWidth() ? fWidth : col.GetPreferredWidth();


Posted by like winds
,