Changing row height in a data grid without changing font size

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do you change the row height in a data grid - I do not want to increase
the height by changing my font size. My product is a touch screen so I have
to make the row height large enought for a finger press.
 
You can change the row height programatically like this:

foreach (DataGridViewRow row in dataGridView1.Rows)
{
row.Height = 80; // or whatever size you want it to be
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top