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 |
Tags
- c# datagridview 데이터 넣기
- map이 undefined가 뜰 때
- 데이터테이블 데이터 넣기
- datagridview 직접입력
- listener 1883
- DataGridView 직접 입력
- mosquitto
- 공인IP
- setInterval 정지
- mosquitto.conf
- setInterval 중지
- AntDesign
- DatePicker
- mySQL_Replication
- Replication
- pm2 설치
- html #select #option #multiple
- 1883
- pm2 확인
- invalid data
- timepicker
- allow_anonymouse
- pm2 시작
- pm2 상태 확인
- transfer
- 서버동기화
- setInterval 외부 정지
- pm2
- setInterval clear
- 맥 어드레스
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 |