Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

How to set font type with a DataGridView?

$
0
0

I have a DataGridView, and I want every cell to have Courier font style.

I'm doing the following:

temp.Font = new Font("Courier", 12, FontStyle.Bold);

I have indeed Bold, 12 size, but I don't have Courier...

What is wrong with this?


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>