데이터그리그뷰 DATAGRIDVIEW 셀값에 따른 색상 변경
// RowPostPaint 이벤트를 이용한 각 행에 대한 배경색 변경하기 private void dGridView_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) { string remain_sec = string.Empty; try { remain_sec = dGridView[5, e.RowIndex].Value.ToString().Replace("초",""); int sec = Convert.ToInt32(remain_sec); if (sec
C#
2010. 9. 14. 11:54