The following code example demonstrates how to implement a handler for the xref:System.Windows.Forms.DataGridView.CellFormatting?displayProperty=nameWithType event ...