Add a handler for the
CellFormatting
event of your grid, thus:
myGridView.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.myGridView_CellFormatting);
Then add a handler to get the cell's text and adjust it to your own style; something like:
private void myGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
string strData;
if (e.Value != null)
{
strData = (string)e.Value;
if (myGridView.Columns[e.ColumnIndex].Name ==
{
e.Value =
e.FormattingApplied = true;
}
}
}