M
Mr. X.
Hello.
I need to calculate the exact size of DataGridView column header.
Suppose I have a title on it : "my title".
I did the calculation :
dim g as graphics
....
g = createGraphics()
thesize = g.measureString("my title", myDataGridView.font)
(is myDataGridView.font correct for the above?)
But also the above is not enough :
There is a space gap that the header has (at the left of the title, and at
the right),
but I don't know how to resolve it.
Thanks
I need to calculate the exact size of DataGridView column header.
Suppose I have a title on it : "my title".
I did the calculation :
dim g as graphics
....
g = createGraphics()
thesize = g.measureString("my title", myDataGridView.font)
(is myDataGridView.font correct for the above?)
But also the above is not enough :
There is a space gap that the header has (at the left of the title, and at
the right),
but I don't know how to resolve it.
Thanks