DatagridView
am 16.11.2007 19:28:32 von LouHow do you set the font size on a data grid?
-Lou
How do you set the font size on a data grid?
-Lou
Should be in a kind of flavour you like on our website
http://www.vb-tips.com/default.aspx
Cor
What?
I don't think that is the method for setting the font size of a DataGrid
column programatically...
For thos who need the answer i did eventually figure it out.
Dim font As New Font( _
dggrid.ColumnHeadersDefaultCellStyle.Font.FontFamily, 10, FontStyle.Bold)
dgGrid.Columns(1).DefaultCellStyle.Font = font
"Cor Ligthert[MVP]"
news:E9D865C3-B74F-4E19-8B03-342C1D88842B@microsoft.com...
> Should be in a kind of flavour you like on our website
>
> http://www.vb-tips.com/default.aspx
>
> Cor
Lou,
That is the method for a columnheader font on a DataGrid, not a font in a
DataGrid view column.
In my idea are you making it people who search in this newsgroup on Google
very difficult to find answers doing like you do.
Cor
"Lou"
news:ugmY$GhKIHA.6008@TK2MSFTNGP05.phx.gbl...
> What?
> I don't think that is the method for setting the font size of a DataGrid
> column programatically...
>
> For thos who need the answer i did eventually figure it out.
> Dim font As New Font( _
>
> dggrid.ColumnHeadersDefaultCellStyle.Font.FontFamily, 10, FontStyle.Bold)
>
>
>
> dgGrid.Columns(1).DefaultCellStyle.Font = font
>
>
>
>
> "Cor Ligthert[MVP]"
> news:E9D865C3-B74F-4E19-8B03-342C1D88842B@microsoft.com...
>> Should be in a kind of flavour you like on our website
>>
>> http://www.vb-tips.com/default.aspx
>>
>> Cor
>
>
I apologize.
-louie
"Cor Ligthert[MVP]"
news:A65CE3C7-CD8B-4FFA-A49F-D83B08FC5D53@microsoft.com...
> Lou,
>
> That is the method for a columnheader font on a DataGrid, not a font in a
> DataGrid view column.
>
> In my idea are you making it people who search in this newsgroup on Google
> very difficult to find answers doing like you do.
>
> Cor
>
>
> "Lou"
> news:ugmY$GhKIHA.6008@TK2MSFTNGP05.phx.gbl...
>> What?
>> I don't think that is the method for setting the font size of a DataGrid
>> column programatically...
>>
>> For thos who need the answer i did eventually figure it out.
>> Dim font As New Font( _
>>
>> dggrid.ColumnHeadersDefaultCellStyle.Font.FontFamily, 10, FontStyle.Bold)
>>
>>
>>
>> dgGrid.Columns(1).DefaultCellStyle.Font = font
>>
>>
>>
>>
>> "Cor Ligthert[MVP]"
>> news:E9D865C3-B74F-4E19-8B03-342C1D88842B@microsoft.com...
>>> Should be in a kind of flavour you like on our website
>>>
>>> http://www.vb-tips.com/default.aspx
>>>
>>> Cor
>>
>>
>