본문 바로가기
300x250

C#113

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.
DevExpress / Winform 행의 색깔 변경하기 입니다. 특정 행의 색을 변경합니다. private void gridView_RowStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowStyleEventArgs e) { var row = this.gridView.GetRowCellDisplayText(e.RowHandle, "ID"); if(row.Equals("aaa")) { e.Appearance.BackColor = Color.DarkOrange; } } GetRowCellDisplayText 메서드에서 두번째 인자는 컬럼 이름을 작성하면 됩니다. 2019. 9. 10.
300x250