본문 바로가기
300x250

전체 글875

그리드 출력시 컬럼 값에 따라 정렬 다르게 하기. 그리드에 여러 내용을 출력 시 값의 길이가 고정되어 있는 내용이 있고 값의 길이가 변하는 내용이 있다. 예를 들어 이름의 경우 이름의 길이가 3글자 4글자 영문 이름의 경우 길이가 변하기에 정렬을 할 때 왼쪽 정렬 날짜의 경우 값의 길이가 크게 변함이 없기 때문에 가운데 정렬을 한다. 그리고 금액의 경우 오른쪽 정렬을 한다. 값의 길이가 일정하지 않으면 왼쪽정렬 / 값의 길이가 일정하면 가운데 정렬 / 금액을 표시할때는 오른쪽 정렬 2019. 11. 6.
파일 모니터링 프로그램 입니다. 선택한 폴더의 파일들을 모니터링 하는 프로그램 입니다. 모니터링 할 경로를 설정 후 타입에는 파일 확장자를 입력한 다음 모니터링 ON 버튼을 클릭하면 동작합니다. 2019. 10. 27.
C# / Winform 프로그레스바(Progress Bar) 입니다. Winform 프로그레스바 입니다. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WinformApp { public partial class MainForm : Form { private int number = 0; private string orgString = ""; /// /// 생성자 입니다. /// public MainForm() { Initia.. 2019. 10. 27.
DevExpress / Winform Bar 차트의 Bar의 색상을 변경합니다. 차트의 Bar의 색상을 변경합니다. using System; using System.Data; using System.Drawing; using System.Windows.Forms; using DevExpress.XtraCharts; namespace Dev_Sample { public partial class MainForm : Form { public MainForm() { InitializeComponent(); Load += mainForm_Load; } /// /// 메인폼 로드시 동작합니다. /// /// 이벤트 발생자 입니다. /// 이벤트 인자 입니다. private void mainForm_Load(object sender, EventArgs e) { ChartControl chart .. 2019. 9. 30.
DevExpress / Winform 차트에 spline, line, bar를 출력합니다. 차트에 spline, line, bar를 출력합니다. using System; using System.Data; using System.Windows.Forms; using DevExpress.XtraCharts; namespace Dev_Sample { public partial class MainForm : Form { public MainForm() { InitializeComponent(); Load += mainForm_Load; } /// /// 메인폼 로드시 동작합니다. /// /// 이벤트 발생자 입니다. /// 이벤트 인자 입니다. private void mainForm_Load(object sender, EventArgs e) { ChartControl chart = new ChartC.. 2019. 9. 29.
DevExpress / Winform Bar 차트를 생성합니다 Bar 차트를 생성합니다 using System; using System.Data; using System.Windows.Forms; using DevExpress.XtraCharts; namespace Dev_Sample { public partial class MainForm : Form { public MainForm() { InitializeComponent(); Load += mainForm_Load; } /// /// 메인폼 로드시 동작합니다. /// /// 이벤트 발생자 입니다. /// 이벤트 인자 입니다. private void mainForm_Load(object sender, EventArgs e) { ChartControl chart = new ChartControl(); chart... 2019. 9. 29.
DevExpress / Winform 개별 차트 시리즈를 데이터에 바인딩 합니다 개별 차트 시리즈를 데이터에 바인딩하는 예제 입니다. using System; using System.Data; using System.Windows.Forms; using DevExpress.XtraCharts; namespace Dev_Sample { public partial class MainForm : Form { public MainForm() { InitializeComponent(); Load += mainForm_Load; } /// /// 메인폼 로드시 동작합니다. /// /// 이벤트 발생자 입니다. /// 이벤트 인자 입니다. private void mainForm_Load(object sender, EventArgs e) { ChartControl chart = new ChartC.. 2019. 9. 29.
DevExpress / Winform Unbound Column 생성하기 입니다. Unbound Column 생성하기 입니다. GridColumn unboundColumn = this.gridView.Columns.AddField("Test"); unboundColumn.VisibleIndex = this.gridView.Columns.Count; unboundColumn.UnboundType = DevExpress.Data.UnboundColumnType.Decimal; unboundColumn.OptionsColumn.AllowEdit = false; 위의 코드를 작성하여 Test라는 이름을 가진 언 바운드 컬럼을 생성합니다. private void gridView_CustomUnboundColumnData(object sender, DevExpress.XtraGrid.Views... 2019. 9. 10.
300x250