Search code examples
winformsunicodedatagrid.net-2.0

Greek character are not displayed in winform combobox


I am working on a winform application, where I have grid with column displaying certain length measurement units. I have defined a column as below.

var unitColumn = new DataGridViewComboBoxColumn {
    Name = "UnitColumn",
    HeaderText = "UnitColumnHeader",
    Width = 80,
    DataSource = new[] { "nm", "mm", "μm" },
};
_calibGrid.Columns.Add(unitColumn);

As you can see the second item in the combobox suppose to display μm, but it displays the m. After I choose the item text in the cell displayed correctly. I am quite new to winform development, can any one suggest the fix/solution?

enter image description here


Solution

  • Try - Console.WriteLine("\u00b5");

    enter image description here