Devexpress의 Winform 의 GridControl (GridView, BandedGridView) 및 TreeList 의 Indicator Header에 버튼을 추가 하는 코드 /*// 사용법// 이미지 및 ToolTipContainer 를 인스턴스의 속성으로 노출IndicatorHeaderButton indicatorHeaderButton = new IndicatorHeaderButton(this.gc_Input);indicatorHeaderButton.IndicatorButtonClick += (ss, ee) =>{ // 버튼 클릭};*/public sealed class IndicatorHeaderButton{ private static readonly string AddBu..
DevExpress
소스 코드에서 tree.FocuseNode.Check = true 등을 설정할 경우 BeforeCheckNode, AfterCheckNode가 동작하지 않음End-User 용으로 키보드, 마우스 등의 프로그램 사용자가 행위에 대해서 이벤트 발생위와 같은 문제 처리를 위해서 Reflection을 사용하여 Event Method 를 찾아서 처리Devexpress Winform TreeListControl - 20.1.6.0 에서 작업 되었음private void RiaseBeforeAfterNodeChecked(TreeList tree, TreeListNode currentNode, bool toChecked){ System.ComponentModel.EventHandlerList eventHandle..
* treelist 설정 int footerCount = 4; int footerRowHeight = (treeList1.RowHeight * footerCount) + ((2 + 2) * footerCount); this.treeList1.KeyFieldName = "ID"; this.treeList1.ParentFieldName = "ParentID"; this.treeList1.OptionsView.ShowSummaryFooter = true; this.treeList1.FooterPanelHeight = footerRowHeight; this.treeList1.CustomDrawFooterCell += treeList1_CustomDrawFooterCell; this.treeList1.DataSo..
private void AdditionalBMController_CustomDrawBandHeader(object sender, DevExpress.XtraGrid.Views.BandedGrid.BandHeaderCustomDrawEventArgs e) { if (e.Band != null ) { if (e.Band.ReallyVisible == false || e.Band.HasChildren == false) return; if (e.Graphics.ClipBounds.Width > e.Info.CaptionRect.Width) return; e.Info.Caption = ""; e.Painter.DrawObject(e.Info); System.Drawing.Drawing2D.GraphicsState..
Devexpress Ribbon의 TabView를 사용하고 Child Form 에서 일정 수량 이상( TextEdit 기준 100~150개 이상 )의 Control이 존재 하는 경우 Tab Change 시에 일시적으로 느려지는 현상이 있습니다. (Tab Header) (1항 작성 후 2항 혹은 3항 두가지 중 하나를 적용해 주시면 됩니다.) 1. 확장 함수 사용 ------------------------------------------------------------------------ [DllImport("user32.dll")] public static extern int SendMessage(IntPtr hWnd, Int32 wMsg, bool wParam, Int32 lParam); priv..