Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- AntDesign
- mosquitto.conf
- mySQL_Replication
- pm2 설치
- 1883
- 맥 어드레스
- allow_anonymouse
- 데이터테이블 데이터 넣기
- 공인IP
- timepicker
- transfer
- Replication
- pm2 확인
- datagridview 직접입력
- mosquitto
- html #select #option #multiple
- invalid data
- setInterval 중지
- setInterval clear
- pm2 상태 확인
- DatePicker
- setInterval 외부 정지
- setInterval 정지
- DataGridView 직접 입력
- pm2 시작
- pm2
- listener 1883
- map이 undefined가 뜰 때
- 서버동기화
- c# datagridview 데이터 넣기
Archives
- Today
- Total
개발 노트
데이터그리드뷰 특정값 열 색상채우기 본문
private void dbView_CellFormatting(object sender,
DataGridViewCellFormattingEventArgs e) {
{
//특정값을 가진 열을 좀 다르게 보여주고 싶을 때
if (e.ColumnIndex == 1)
{
if (e.Value != null)
{
string text = e.Value.ToString();
if (text.Contains("텍스트"))
{
e.CellStyle.ForeColor = Color.Red;
e.CellStyle.SelectionForeColor = Color.Red;
}
}
}
}
참고링크
'프로그래밍 > C#' 카테고리의 다른 글
폼닫을시 설정 저장하고 재실행하면 저장된값 가져오기 (0) | 2022.03.04 |
---|---|
C# 폴더열기 (0) | 2022.03.04 |
C# 데이터그리드뷰 focus 맞추기 (0) | 2022.03.04 |
C# Delegate (0) | 2022.03.04 |
데이터그리드뷰 서스펜드레이아웃, 더블버퍼링 (0) | 2022.03.04 |