Font orientation not working in sfDataGrid (Winforms)
I've tried to set the Font orientation (to 270) in the sfDataGrid, and none have worked. Is this a known deficiency, and when is it expected to be implemented. I'm after the header text, but the normal cell text seems to have the same issue.
Here is a snipet of the code I was running:
private void sfDataGrid_AutoGeneratingColumn(object sender, Syncfusion.WinForms.DataGrid.Events.AutoGeneratingColumnArgs e)
{
{
e.Column.AllowHeaderTextWrapping = true;
if (e.Column.HeaderText == "Product Name")
{
e.Column.HeaderStyle.Font.Orientation = 270;
}
{
e.Column.HeaderStyle.Font.Orientation = 270;
}
}
private void sfDataGrid_DrawCell(object sender, Syncfusion.WinForms.DataGrid.Events.DrawCellEventArgs e)
{
if ((e.DataRow as DataRowBase).RowType == RowType.StackedHeaderRow)
{
if (e.CellValue.ToString() == "Product Name")
{
e.Style.Font.Orientation = 270;
}
}
if ((e.DataRow as DataRowBase).RowType == RowType.HeaderRow)
{
if (e.CellValue.ToString() == "Order Date")
{
e.Style.Font.Orientation = 270;
}
}
}
{
if ((e.DataRow as DataRowBase).RowType == RowType.StackedHeaderRow)
{
if (e.CellValue.ToString() == "Product Name")
{
e.Style.Font.Orientation = 270;
}
}
if ((e.DataRow as DataRowBase).RowType == RowType.HeaderRow)
{
if (e.CellValue.ToString() == "Order Date")
{
e.Style.Font.Orientation = 270;
}
}
}
SIGN IN To post a reply.
2 Replies
FP
Farjana Parveen Ayubb
Syncfusion Team
March 19, 2018 12:44 PM UTC
Hi Richard,
Thanks for contacting Syncfusion support.
Currently we don’t have support to set the Orientation of a string using Font property. Currently we don’t have any immediate plan for implementing this support in SfDataGrid. We will consider your request and this support will be implemented in any of our upcoming release.
Please let us know if you have any concerns.
Regards,
Farjana Parveen A
MA
Mohanram Anbukkarasu
Syncfusion Team
June 26, 2018 09:52 AM UTC
Hi Richard,
We are glad to announce that our Essential Studio Volume 2, 2018 (Version 16.2.0.41) is rolled out and is available for download under the following link.
We have included the support for font orientation for SfDataGrid in this release. Please refer to the below code example and sample from the given location to set Font orientation.
Code Example:
|
this.sfDataGrid.HeaderRowHeight = 120;
this.sfDataGrid.Columns["ProductName"].HeaderStyle.Font.Orientation = 270; |
Sample Location : http://www.syncfusion.com/downloads/support/directtrac/general/ze/FontOrientation1354280946
UG Links:
|
Font orientation for Header |
|
|
Font orientation of stacked header |
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Mohanram A.
SIGN IN To post a reply.
- 2 Replies
- 3 Participants
-
RT Richard Thomas
- Mar 17, 2018 03:10 AM UTC
- Jun 26, 2018 09:52 AM UTC