This is a code taken from Microsoft documentation, I would like to know how to increase the font size of the cell.ToolTipText
Thank you.
void dataGridView1_CellFormatting(object sender,
DataGridViewCellFormattingEventArgs e)
{
if ( (e.ColumnIndex == this.dataGridView1.Columns["Rating"].Index)
&& e.Value != null )
{
DataGridViewCell cell =
this.dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex];
if (e.Value.Equals("*"))
{
cell.ToolTipText = "very bad";
}
else if (e.Value.Equals("**"))
{
cell.ToolTipText = "bad";
}
else if (e.Value.Equals("***"))
{
cell.ToolTipText = "good";
}
else if (e.Value.Equals("****"))
{
cell.ToolTipText = "very good";
}
}
}
question from:
https://stackoverflow.com/questions/65598725/c-sharp-datagridview-cell-tooltiptext-increase-size-of-font 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…