This is a migrated thread and some comments may be shown as answers.

DIsplay Greek Delta in grid header

2 Answers 15 Views
GridView
This is a migrated thread and some comments may be shown as answers.
pierre-jean
Top achievements
Rank 1
Veteran
Iron
pierre-jean asked on 06 Apr 2021, 06:07 PM

HEllo

I would like to display a lower case greek delta in the header of a grid view

in the view formatting event I use the following

                If e.CellElement.Text = "D" Then
                    e.CellElement.ColumnInfo.HeaderText = "d"
                    e.CellElement.Font = New Font("Symbol", MyPreference.Font.Size, FontStyle.Bold)
                Else
                    e.CellElement.ResetValue(VisualElement.FontProperty, ValueResetFlags.Local)
                End If

and it displays a latin lowercase "d"

However if I set a upper case latin D :

                If e.CellElement.Text = "D" Then
                    e.CellElement.ColumnInfo.HeaderText = "D"
                    e.CellElement.Font = New Font("Symbol", MyPreference.Font.Size, FontStyle.Bold)
                Else
                    e.CellElement.ResetValue(VisualElement.FontProperty, ValueResetFlags.Local)
                End If

I do get a Greek uppercase Delta

Any clue why it does not work for the lowercase ?

Thanks a lot for any suggestion

Best regards

Pierre-Jean

2 Answers, 1 is accepted

Sort by
0
Nadya
Telerik team
answered on 07 Apr 2021, 03:26 PM

Hello, Pierre-Jean,

You can use the following approach in order to display a Greek small letter delta:

private void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.CellElement.Text == "D")
    {
        //Greek small letter delta
        e.CellElement.ColumnInfo.HeaderText = Convert.ToString('\u03B4');

        //Greek capital leter delta
        //e.CellElement.ColumnInfo.HeaderText = Convert.ToString('\u0394');
    }

I hope this helps. Let me know if I can assist you further.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
pierre-jean
Top achievements
Rank 1
Veteran
Iron
answered on 07 Apr 2021, 05:20 PM

Hello Nadya

Thanks a lot

works perfectly

Kind Regards

Pierre-Jean

Tags
GridView
Asked by
pierre-jean
Top achievements
Rank 1
Veteran
Iron
Answers by
Nadya
Telerik team
pierre-jean
Top achievements
Rank 1
Veteran
Iron
Share this question
or