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;
}
}
}
Share razor library between blazor wasm and .net maui blazor project – (1/2)
Blazor WebAssembly 환경으로 이미 개발된 서비스가 있는 경우 .Net MAUI 를 사용해서 모바일 및 더 많은 환경을 지원하기 위해 추가 개발을 하는 경우
이미 작성된 razor 페이지 또는 라이브러리를 재활용하기 위한 샘플 소스를 만들어 보겠습니다.
0 Comments