using DevExpress.Utils;
using DevExpress.XtraGrid.Views.Grid;
using System.Drawing;
private void gvMain_CustomDrawFooterCell(object sender, FooterCellCustomDrawEventArgs e)
{
if (GridData == null)
{
return;
}
if (e.Column == colRepQtyName)
{
e.Info.DisplayText = _projectCumulativePlan;
e.Info.Bounds = new Rectangle(e.Bounds.X, e.Bounds.Y, this.bandMain.Width, e.Bounds.Height);
e.Info.Appearance.Options.UseTextOptions = true;
e.Info.Appearance.TextOptions.HAlignment = HorzAlignment.Center;
e.Painter.DrawObject(e.Info);
e.Handled = true;
}
else
{
string fieldName = e.Column.FieldName;
if (fieldName.StartsWith(CpjUtil.C_MonthColumnFieldNamePrefix))
{
string value = string.Format(e.Column.SummaryItem.DisplayFormat
, _sortedValueWithAccum[fieldName.Split('_')[1].CPJToDateTime()].AccumValue);
e.Info.DisplayText = value;
e.Painter.DrawObject(e.Info);
e.Handled = true;
}
}
}
.net 프로젝트 컴파일 상수 조건에 따라 패키지 참조 목록 수정
.net 프로젝트에서 컴파일 상수를 사용해서 패키지 참조 목록을 필터링 하는 방법을 설명합니다.
0 Comments