Skip to content

Instantly share code, notes, and snippets.

@k0bakatsu
Last active March 15, 2022 15:51
Show Gist options
  • Save k0bakatsu/0ba97d64666a633b217e845d9c4e0477 to your computer and use it in GitHub Desktop.
Save k0bakatsu/0ba97d64666a633b217e845d9c4e0477 to your computer and use it in GitHub Desktop.
// Draw the disabled button text.
if (this.FormattedValue is String)
{
TextRenderer.DrawText(graphics,
(string)this.FormattedValue,
this.DataGridView.DefaultCellStyle.Font,
buttonArea, SystemColors.GrayText);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment