private void _dataGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { DataGridViewRow row = _dataGridViewLogEvents.Rows[e.RowIndex]; var logEventItem = row.DataBoundItem as LogEventItem; LogWindowUtils.HandleCellFormattingEvent( e, row, logEventItem, logMessageDataGridViewTextBoxColumn.Index, _textColumnIndices); }
private void _dataGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { DataGridViewRow row = _dataGridView.Rows[e.RowIndex]; LogEventItem logEventItem = GetLogEventItem(row); if (logEventItem == null) { return; } LogWindowUtils.HandleCellFormattingEvent(e, row, logEventItem, _columnLogMessage.Index, _textColumnIndices); }