첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.

728x90
반응형
728x170

using System.Globalization;

using Infragistics.Win.UltraWinGrid;

#region UltraGrid 레이아웃 초기화 하기 - ultraGrid_InitializeLayout(sender, e)

/// <summary>
/// UltraGrid 레이아웃 초기화 하기
/// </summary>
/// <param name="sender">이벤트 발생자</param>
/// <param name="e">이벤트 인자</param>
private void ultraGrid_InitializeLayout(object sender, InitializeLayoutEventArgs e)
{
    e.Layout.AutoFitStyle = AutoFitStyle.ExtendLastColumn;

    CultureInfo enUsCultureInfo = CultureInfo.CreateSpecificCulture("en-us");
    CultureInfo deDeCultureInfo = CultureInfo.CreateSpecificCulture("de-de");
    CultureInfo jaJpCultureInfo = CultureInfo.CreateSpecificCulture("ja-jp");

    e.Layout.Bands[0].Columns["OrderDate"   ].Format = "d";
    e.Layout.Bands[0].Columns["OrderDate"   ].FormatInfo = enUsCultureInfo;
    e.Layout.Bands[0].Columns["RequiredDate"].Format = "d";
    e.Layout.Bands[0].Columns["RequiredDate"].FormatInfo = deDeCultureInfo;
    e.Layout.Bands[0].Columns["ShippedDate" ].Format = "d";
    e.Layout.Bands[0].Columns["ShippedDate" ].FormatInfo = jaJpCultureInfo;
}

#endregion
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요