Hi edgar,
Thank you for your interest in Syncfusion products.
Query
Vertical text
align
|
There are couple of ways to set the Column Header Text Alignment:
<code>
this.grid.BaseStylesMap["Header"].StyleInfo.Font.Orienta
tion=90;
</code>
|
<code>
private void grid_PrepareViewStyleInfo(object sender,
Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs
e)
{
if((e.ColIndex==1) && (e.RowIndex==0))
{
e.Style.Font.Italic=true;
e.Style.Font.Bold=true;
e.Style.Font.Size=10;
e.Style.Font.Orientation=90;
e.Style.TextColor=Color.Red;
}
If you use BaseStylesMap, it will work for the whole header
column. But to make changes to individual cell you need to handle
PrepareViewStyleInfo event
We have provided the solution based on your last update. We hope
this will helps to you. If this didn’t helps to you please provide any simple
sample which is you have used in to reproduce and some more details. We will
provide an exact support quickly. |
Please let me know if you
have any further concerns.
Warm Regards,
Vinish Kumar K