본문 바로가기
300x250

C#113

DevExpress / Winform GridView에서 마우스 우클릭 시 달력을 출력하기. GridView에서 마우스 우클릭 했을 때 달력이 출력되도록 할 수 있습니다. 출력된 달력에서 날짜 변경 시 그 행의 날짜 입력 값이 변경됩니다. public partial class Form1 : Form { public Form1() { InitializeComponent(); this.gridView1.MouseDown += GridView1_MouseDown; this.gridControl1.DataSource = CreateTable(5); } #region GridView1_MouseDown(sender, e) /// /// 마우스 클릭 했을 때 동작합니다. /// /// 이벤트 발생자 입니다. /// 이벤트 인자 입니다. private void GridView1_MouseDown(object.. 2019. 4. 16.
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.
300x250