0

What is the way to change size in a cell in dataGridView to 8.25
This does not seem to work.

dataGridView1->Rows[b]->Cells[10]->Style->Font->Size = Font->Size(8.25F);
2
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by Liszt
0

You can get a Fontsize property you can not set it.
If you want to set it make a new font instead.

0

Okay, Thank you, I am not sure how to set something like this.

For this scenario, what is the method to achieve this and do I set both the font and size at the same time then ?

0

ddanbe.. thanks..

This did it:

dataGridView1->Rows[1]->Cells[10]->Style->Font = gcnew System::Drawing::Font(L"Arial", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point);
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.