300x250 전체 글875 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. DevExpress / Winform TextEdit에서 천 단위로 끊어서 표기하기(ex: 2,300) TextEdit에서 천 단위로 끊어서 표기하기(ex: 2,300) 입니다. this.textEdit.Properties.Mask.EditMask = "n0"; this.textEdit.Properties.Mask.UseMaskAsDisplayFormat = true; this.textEdit.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric; 위의 코드를 생성자 안에 작성하면 됩니다. 2019. 9. 10. Database / PostgreSQL JOIN 사용하기. 두 개 이상의 테이블을 결합하여 여러 행을 검색하는 것입니다. SELECT * FROM weather JOIN cities ON (weather.city = cities.name); SELECT * FROM weather LEFT OUTER JOIN cities ON (weather.city = cities.name); 2019. 7. 15. Database / PostgreSQL 현재 사용자 / 현재 날짜 / 현재 시간 / 타임스탬프 구하기. SELECT CURRENT_USER, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP; 2019. 7. 14. Database / PostgreSQL 이번달의 첫번째 날과 마지막 날 구하기. 이번달의 첫번째 날과 마지막 날 구하기 입니다. SELECT cast(date_trunc('month',current_date) as date) as firstday, (date_trunc('MONTH', current_date) + INTERVAL '1 MONTH - 1 day')::date lastday; 2019. 7. 14. Database / PostgreSQL 문자열 결합하기. SELECT (last_name || '_' || first_name) AS full_name, last_name, first_name FROM employees 2019. 7. 14. Database / PostgreSQL COALESCE 사용하기(오라클 NVL) COALESCE(A, B); A값이 NULL일 경우 B로 반환합니다. select category_id, description, COALESCE(description, 'empty') as COALESCE_RESULT from categories; 2019. 7. 14. Database / PostgreSQL UNION 사용하기 두 개 이상의 쿼리를 한번에 출력할 때 사용합니다. 출력할 때의 컬럼의 개수가 같아야 합니다. 예를 들어 첫번째 쿼리의 출력되는 컬럼은 2개인데 두번째 쿼리의 출력되는 컬럼은 1개라면 오류 발생합니다. SELECT company_name FROM customers UNION SELECT address FROM suppliers; 2019. 7. 14. 이전 1 ··· 94 95 96 97 98 99 100 ··· 110 다음 300x250