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;
}
}
}
윈도우 폼 개발후 배포시 사이즈가 이상하다…?
AutoScaleMode열거형 Windows Forms에서 지원하는 여러 종류의 자동 크기 조정 모드를 지정합니다. 네임스페이스: System.Windows.Forms 어셈블리: System.Windows.Forms(System.Windows.Forms.dll) 구문 public enum AutoScaleMode 멤버 이름 설명 None 자동 크기조정을 사용할 수 없습니다. Font 클래스에서 사용하는글꼴(대개 시스템 글꼴)의 크기를 기준으로 크기를 제어합니다. Dpi...
0 Comments