devExpress 34

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

DevExpress SreadsheetControl

데브익스프레스의 스프레드시트컨트롤에 엑셀 파일을 바인딩 시키고 로드된 시트 데이타의 위치(좌표) 정보를 가져오는 예. SreadsheetControl spread = new SpreadsheetControl(); spread.LoadDocument(localFileName, DocumentFormat.Xlsx); Worksheet sheet = spread.Document.Worksheets[0]; Range usedRange = spread.Document.Worksheets[0].GetUsedRange(); int topRowIndex = usedRange.TopRowIndex; int bottomRowIndex = usedRange.BottomRowIndex; int leftColumnIndex =..

develop 2023.11.13

devExpress BandedGridview 헤더에서 자식 밴드 찾기

devExpress BandedGridview 헤더에서 자식 밴드 찾기~ //에 //1. 밴드에서 하위 밴드 찾기. private void SetBandHeaderGrv(BandedGridView bgrv) { for (int i = 0; i < bgrv.Bands.Count; i++) { if (bgrv.Bands[i].HasChildren) { SetBandHeader(bgrv.Bands[i]); } } } //2. 하위밴드 찾고, 다시 하위밴드가 있는 지 여부를 재귀 방식으로 호출. // 최종 단계에서 코드 적용. private void SetBandHeader(GridBand band) { if (band.HasChildren) { // foreach (GridBand child_band in b..

develop 2021.10.27

devExpress SpreadSheet 에 텍스트박스(도형) 추가

1. 시작 devExpress SpreadSheet 로 엑셀 출력물을 만들 때 제목을 텍스트박스(도형)으로 만들고 싶었다. 2. 뻘짓 제목 텍스트 박스 만들고 나니 결재란도 만들고 싶었다. 2-1. 예제 투척 - 결재란 그리기 (대충 아래 표 모양임) 결 재 직책 직책 직책 직급 성명 직급 성명 직급 성명 (결재란) //결재 박스 int xF = 3500; int yF = 10; int wF = 70; //직책 시작점 int x = xF + wF; int y = yF; int w = 210; int h = 55; //직급 시작점 int y2 = y + h; int y3 = y + h + h; int h3 = 170; //결재 박스 높이 int hF = h + h + h3; //결재 박스 Shape sha..

develop 2021.10.13
반응형