Hello,

I have some boolean columns in my datagrid. To minimized the column width I
want to change the height of the header row and write the header text in two
lines.
Is this possible ?
How can I do that ?


Thank you

Heinz

RE: DataGrid: Can I use two text lines in the header ? by PhilWilliams

PhilWilliams
Tue Sep 28 06:25:05 CDT 2004

It is possible.

First set the HeaderText for the columns in code, eg

dataGridBoolColumn1.HeaderText = "Line 1\nLine 2\nLine 3";

Next, set the dataGrid1.HeaderFont to a larger font. This increases the
height of the Headers, but the Headers are still displayed using the
dataGrid1.TableStyles[ 0 ].HeaderFont font.

Regards,
Phil.

"Heinz Z." wrote:

> Hello,
>
> I have some boolean columns in my datagrid. To minimized the column width I
> want to change the height of the header row and write the header text in two
> lines.
> Is this possible ?
> How can I do that ?
>
>
> Thank you
>
> Heinz
>
>
>

Re: DataGrid: Can I use two text lines in the header ? by Heinz

Heinz
Tue Sep 28 07:14:47 CDT 2004

Thank you,
now it runs perfectly.

Regards,
Heinz


"Phil Williams" <PhilWilliams@discussions.microsoft.com> schrieb im
Newsbeitrag news:B9F1A345-9240-4FB4-B3CE-B41D3BB900FC@microsoft.com...
> It is possible.
>
> First set the HeaderText for the columns in code, eg
>
> dataGridBoolColumn1.HeaderText = "Line 1\nLine 2\nLine 3";
>
> Next, set the dataGrid1.HeaderFont to a larger font. This increases the
> height of the Headers, but the Headers are still displayed using the
> dataGrid1.TableStyles[ 0 ].HeaderFont font.
>
> Regards,
> Phil.
>
> "Heinz Z." wrote:
>
> > Hello,
> >
> > I have some boolean columns in my datagrid. To minimized the column
width I
> > want to change the height of the header row and write the header text in
two
> > lines.
> > Is this possible ?
> > How can I do that ?
> >
> >
> > Thank you
> >
> > Heinz
> >
> >
> >