본문 바로가기
300x250

winform79

DevExpress / Winform CheckedListBoxItem 컨트롤 추가하기. 여러개의 항목을 선택 및 해제 할 수 있는 CheckedListBoxItem컨트롤을 추가하는 방법 입니다. CheckedListBoxItem[] items = { new CheckedListBoxItem("January", false), new CheckedListBoxItem("February", false), new CheckedListBoxItem("March", true), new CheckedListBoxItem("April", false), new CheckedListBoxItem("May", false), new CheckedListBoxItem("June", true), new CheckedListBoxItem("July", true), new CheckedListBoxItem("Augus.. 2019. 4. 15.
DevExpress / Winform LookUpEdit 컨트롤에서 NULL 값에 텍스트 입력하기. LookUpEdit.Properties.NullText 를 통하여 Null 값을 나타내는 텍스트를 가져 오거나 설정할 수 있습니다. public class CityInfo { public int ID { get; set; } public string City { get; set; } public string Country { get; set; } public string Region { get; set; } } List Persons = new List(); List Cities = new List(); CreateData(); LookUpEdit lookUpEdit = new LookUpEdit(); lookUpEdit.Parent = this; lookUpEdit.Location = new Syste.. 2019. 4. 15.
DevExpress / Winform LookUpEdit 컨트롤 추가하기. LookUpEdit는 드롭 다운 방식으로 데이터를 조회 및 선택 할 수 있는 컨트롤 입니다. public class CityInfo { public int ID { get; set; } public string City { get; set; } public string Country { get; set; } public string Region { get; set; } } List Persons = new List(); List Cities = new List(); CreateData(); LookUpEdit lookUpEdit = new LookUpEdit(); lookUpEdit.Parent = this; lookUpEdit.Location = new System.Drawing.Point(198,78.. 2019. 4. 15.
DevExpress / Winform CheckEdit 컨트롤에서 Indeterminate 값 추가하기. CheckEdit 에는 기본적으로 체크(true) / 언체크(false) 를 출력 할 수 있습니다. 하지만 추가로 불확정(Indeterminate) 상태도 추가해 줄 수 있습니다. checkEdit5.Properties.AllowGrayed = true; 코드를 추가해줘야 합니다. 참고로 체크는 true 값에 해당하고 언체크는 false 값에 해당되며 불확정의 경우 null 값에 해당됩니다. Console.WriteLine( CheckEdit.EditValue ); 코드의 출력 값들을 확인해보면 Checked는 True, UnChecked는 False, Indeterminate는 빈 값을 출력해줍니다. private void CreateCheckEdit() { CheckEdit checkEdit1 = n.. 2019. 4. 14.
300x250