DevExpresss XtraGrid Footer CustomDraw

Published Sep 12, 2012 | Updated Sep 28, 2022 | 0 comments

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;
        }
    }
}

TAG INFORMATION

Learn more on this topic

Related Blog Posts

C# 으로 사용자 입력을 받아 동작하는 콘솔 프로그램 구현

C# 으로 사용자 입력을 받아 동작하는 콘솔 프로그램 구현

네이버 지식인에서 우연히 보게 된 누군가의 질문... c# 콘솔 형태의 프로그램이며, 일정 갯수의 숫자를 데이터로 입력 받아 최대값/최소값 등을 구하거나 종료할 수 있는 기능을 하는 프로그램이 요구사항 이었다 내가 답변한 원문은 여기 : C# 프로그래밍 질문 : 지식iN (naver.com) 네이버 지식인 링크 실제 프로그램이 실행되는 스크린샷은 다음 이미지와 같습니다. 프로그램이 실행되면 메뉴 설명을 출력합니다. 메뉴 선택에서 0~3 까지 숫자를 입력 받아 메뉴 선택의...

read more
Blazor bootstrap theme sample

Blazor bootstrap theme sample

전체 소스 코드는 다음 Github 의 BlazorBootswatchTheme 폴더에 있습니다 https://github.com/kkomzi7179/BlazorWASMSample .net 으로 생성된 blazor wasm 기본 템플릿은 bootstrap 을 기반으로 하고 있습니다. 그리고 bootstratp 을 기반으로 다양한 테마를 제공하는 bootswatch 오픈소스 프로젝트가 있습니다. https://github.com/thomaspark/bootswatch MIT...

read more

Join in the conversation

Leave a Comment

0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

무료 온라인 전광판

전광판

텍스트를 입력하고 텍스트 효과 및 배경효과 를 변경해서 전체화면으로 표시할 수 있는 전광판 용도로 사용하실 수 있습니다. 각종 스포츠 및 공연 관람시 응원 용도로 사용이 가능합니다.

Carousel

여러개의 슬라이드를 추가하여 프레젠테이션 및 이미지 슬라이드 용도로 사용하실 수 있습니다. 브라우저가 포함된 IT 기기로 큰 모니터에 연결하여 매장 내 공지사항 및 메뉴소개를 이미지로 표시할 수 있습니다.

Pin It on Pinterest

Shares
Share This

Share This

Share this post with your friends!

Shares