develop 123

DevExpress 컨트롤에서 PictureEdit에 스크롤 바 위치 지정 방법

스크롤 바 위치 지정 방법 DevExpress.XtraEditors.VScrollBar vScrollBar = null; DevExpress.XtraEditors.HScrollBar hScrollBar = null; foreach (Control ctrl in pictureEdit1.Controls) { if (ctrl is DevExpress.XtraEditors.VScrollBar) vScrollBar = ctrl as DevExpress.XtraEditors.VScrollBar; if (ctrl is DevExpress.XtraEditors.HScrollBar) hScrollBar = ctrl as DevExpress.XtraEditors.HScrollBar; } //... hScrollBar.Va..

develop 2024.01.08

c# DevExpress Excel Export

데브익스프레스에서 그리드 데이타를 엑셀로 다운로드 시킬 때 특수 문자등을 그대로 내어 보낼때 사용 XlsxExportOptionsEx xlsxOptions = new XlsxExportOptionsEx(); xlsxOptions.ShowGridLines = true; xlsxOptions.SheetName = "test"; xlsxOptions.ExportType = DevExpress.Export.ExportType.WYSIWYG; // 중요! gridControl.ExportToXlsx(FilePath, xlsxOptions); //위지위그(WYSIWYG: What You See Is What You Get, "보는 대로 얻는다")

develop 2023.11.13

c# devExpress GridControl. Drawing line

데브익스프레스 윈폼 그리드컨트롤에서 그리드 선 다시 그리기. GridControl_Paint(object sender, PaintEventArgs e) { if (gridRowInfo == null) return; foreach(var gridRow in gridRowInfo) { e.Graphics.DrawLine(new Pen(Color.Gray) { DashStyle = System.Drawing.Drawing2D.DashStyle.Dot }, new Point(gridRow.Bounds.X, gridRow.Bounds.Bottom), new Point(gridRow.Bounds.Right, gridRow.Bounds.Bottom)); foreach(var cellInfo in gridDataRow..

develop 2023.11.13

c# devExpress LookUpEditor 바인딩 윈폼.

c# 윈폼에서 devExpress LookUpEditor 컨트롤 바인딩. public static void BindLookUpEdit(this LookUpEdit lue, DataTable dt , string text , string value , bool isTop = false , string allNm = "전체" ) { lue.Properties.DataSource = null; DataTable dtC = dt.Copy(); if (isTop) { DataRow dr = dtC.NewRow(); dr[value] = string.Empty; dr[text] = allNm; dtC.Rows.InsertAt(dr, 0); dtC.AcceptChanges(); } //데이터 바인딩 lue.Prope..

develop 2023.11.13
반응형