첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using System.Drawing;
using System.Drawing.Drawing2D;

using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;

...

private GridView gridView;

...

this.gridView.CustomDrawGroupPanel += gridView_CustomDrawGroupPanel;
this.gridView.FocusedColumnChanged += gridView_FocusedColumnChanged;

private void gridView_CustomDrawGroupPanel(object sender, CustomDrawEventArgs e)
{
    Brush brush = new LinearGradientBrush(e.Bounds, Color.Gray, Color.WhiteSmoke, 0.0);

    e.Graphics.FillRectangle(brush, e.Bounds);

    e.Handled = true;
}

private void gridView_FocusedColumnChanged(object sender, FocusedColumnChangedEventArgs e)
{
    this.gridView.InvalidateGroupPanel();
}
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요