컴퓨터/DX C# 5

[DevExpress] GridControl 정렬 후 여러 항목의 인덱스 가져오기

Get multiselect rows index after sorting GridControl with DataTable DevExpress 의 GridControl 사용 시, DB로부터 받은 DataTable 형식의 데이터를 DataSource 속성에 넣었다. 12var table = new DataTable(); // from DBthis.gridControl1.DataSource = table;cs 그러면 자동으로 컬럼이 입력된다. 여기서, 선택된 Row의 Index를 가져오려면 두가지 속성을 사용할 수 있다. 출처 : DevExpress Identifying Rows and Cards 위 이미지와 같이 그냥 GetSelectedRows() 로 가져오는 것과, RowHandle로 가져오는 방법이 있..

컴퓨터/DX C# 2016.06.09

[DevExpress] PropertyGrid 사용 중 확장되지 않는 속성 문제

DevExpress 버전 : 13.1 DX의 PropertyGridControl 사용 중에 아래와 같이 하위 속성이 존재하지만 컨트롤 상에서 확장되지 않는 경우가 있다. 확장되지 않는 클래스의 이름이 'MyClass'라고 할 때, 아래와 같이 Attribute를 추가한다.(구조체로도 가능하다.)12345[TypeConverter(typeof(ExpandableObjectConverter))]public class MyClass{ ....} Colored by Color Scriptercs 그러면 클래스를 확장시킬 수 있게 된다. keyword : c# propertygrid can't expand참고 : [StackOverflow] How do I view object properties in Prope..

컴퓨터/DX C# 2016.01.28

[C#] GridView 속성 중 FocusRectStyle 에 관하여

DevExpress 의 GridView 컨트롤을 사용하였다.GridView에서 Row(나 Cell)를 선택하면, Cell에만 점선 테두리가 생긴다. GridView.FocusRectStyle PropertyTo prevent the focused cell from being highlighted, set the GridOptionsSelection.EnableAppearanceFocusedCell property to false. To prevent the dotted focus rectangle from being painted around the focused cell, use the FocusRectStyle property. 위 그림과 같이 점선 테두리가 Row 전체에 생기게 하려면, 다음과 같이..

컴퓨터/DX C# 2015.07.09

[DX] DevExpress.XtraGrid.Views.BandedGrid 사용하기

1. 폼의 디자이너에서 도구 상자>DX.13.1: Data & Analytics 그룹의 GridControl 컨트롤을 폼에 추가한다. 2. 추가한 컨트롤의 Run Designer 버튼 클릭 3. Main>Views 페이지에서는 View의 속성을 변경할 수 있다. 중앙에는 이 GridControl에 속해있는 GridView 목록을 보여준다. 해당하는 GridView의 (Click here to change view) 글자를 클릭하면 컨텍스트 메뉴가 도시되는데, 이 메뉴에서 Convert To > BandedGridView 를 선택하면 컨트롤이 변경된다. 4. Main>Columns 페이지로 들어가면 Column을 추가할 수 있다.GridView에 추가할 Column을 생성한다. 아래에 변경 할만한 속성들을..

컴퓨터/DX C# 2015.04.15

[DevExpress] C# 리본 UI 스킨 적용 할 때, Form Boundary Areo 없애기

- 참조에 DevExpress.BonusSkins.v13.1.dll 추가 후, - 폼 띄우기 전에 10, 11 Line 입력1234567891011121314151617static class Program{ /// /// The main entry point for the application. /// [STAThread] static void Main() { // DevExpress Skin 설정 DevExpress.UserSkins.BonusSkins.Register(); DevExpress.Skins.SkinManager.EnableFormSkins(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(f..

컴퓨터/DX C# 2015.04.02