DataGridView에서 CellFormatting 이벤트에 대한 처리기를 추가하여 행의 내용을 기반으로 배경색을 수정했습니다.DataGridView CellFormatting 이벤트가 실행되지 않음
데이터가 테이블에 삽입되는 것처럼 보이지 않습니다. IDE에서 코드를 제대로 작성한 것으로 보이는 CellFormatting 이벤트의 doubleclicking을 사용하여 이벤트 핸들러를 추가했습니다.
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
// this never gets called
MessageBox.Show("Event fired");
}
내가 잘못 할 수 있습니까?
나는 내가 필요한 것을 캡처 한 RowsAdded 이벤트를 사용했다. 감사! – Dave