본문 바로가기
300x250

DevExpress56

DevExpress / Winform CheckEdit 컨트롤 추가하기. Winform 의 CheckBox를 DevExpress 에서는 CheckEdit라고 하는데 CheckEdit를 추가하는 방법 입니다. 또한 마우스 클릭 이벤트로 체크 일때와 언체크 일때 콘솔을 출력하도록 하였습니다. private void CreateCheckEdit() { CheckEdit checkEdit1 = new CheckEdit(); checkEdit1.Properties.Caption = "Hide Button"; checkEdit1.Name = "checkEdit1"; checkEdit1.Location = new System.Drawing.Point(35,100); checkEdit1.Width = 100; checkEdit1.MouseDown += checkEdit1_MouseDown;.. 2019. 4. 14.
DevExpress / Winform GridView에서 특정 컬럼의 출력 내용을 변경하기(이벤트 사용). GridView에서 특정 컬럼의 출력 내용을 변경 할 수 있습니다. 예를 들어 GridView에서 '사용여부'라는 컬럼의 값이 'Y'와 'N'으로 출력된다고 할 때 이 값을 '예' / '아니오' 라고 변경이 가능합니다. 물론 출력만 이렇게 되는 것이고 안의 데이터는 그대로 Y / N 으로 저장되어 있습니다. 소스 입니다. private void listGridView_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e) { if (e.Column.FieldName == "UseYN") { if (Convert.ToString(e.Value) == "Y") { e.Disp.. 2019. 4. 12.
DevExpress / Winform GridControl의 컬럼의 헤더 이름 변경하기. 객체를 GridControl의 DataSource에 바인딩 할 경우 객체 안의 속성들의 이름으로 헤더 이름이 설정 됩니다. 이 설정된 헤더 이름을 변경 할 수 있습니다. this.gridView1.Columns[0].Caption = "첫번째 Column Header"; this.gridView1.Columns[1].Caption = "두번째 Column Header"; this.gridView1.Columns[2].Caption = "세번째 Column Header"; 2019. 4. 10.
DevExpress / Winform GridControl의 날짜가 출력되는 Column에서 날짜 출력 시 날짜와 시간 다 출력되도록 하기. DateTime에서 시분초까지의 값을 전달받아 GridControl의 Column에서 출력될 때에는 년월일만 출력됩니다. 날짜 출력 Column에서 시분초까지 출력되도록 하는 코드 입니다. this.gridView1.Columns[3].DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; this.gridView1.Columns[3].DisplayFormat.FormatString = "yyyy-mm-dd HH:MM:ss"; 네번째 Column에 날짜가 출력되도록 해놨기에 Columns[3]으로 하였습니다. 2019. 4. 10.
300x250