DatagridView

DatagridView

am 16.11.2007 19:28:32 von Lou

How do you set the font size on a data grid?
-Lou

Re: DatagridView

am 17.11.2007 18:06:52 von notmyfirstname

Should be in a kind of flavour you like on our website

http://www.vb-tips.com/default.aspx

Cor

Re: DatagridView

am 18.11.2007 19:35:17 von Lou

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]" wrote in message
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

Re: DatagridView

am 19.11.2007 06:51:11 von notmyfirstname

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" schreef in bericht
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]" wrote in message
> 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
>
>

Re: DatagridView

am 22.11.2007 07:04:36 von Lou

I apologize.
-louie

"Cor Ligthert[MVP]" wrote in message
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" schreef in bericht
> 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]" wrote in message
>> 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
>>
>>
>