Using a grid to simulate a "Character Map" control

I need to implement a control that behaves like the Windows Character Map. I need to be able to display characters x0020 - x00ff for a selectable font - say WingDings. I''ve so far been unsuccessful in setting the .Text or .CellValue of a grid cell to get it to display a specified Uncode character - any suggestions?

1 Reply

AD Administrator Syncfusion Team August 17, 2004 06:00 AM UTC

Once you set the Font Facename, I think things should just work. I dropped a GridControl on a form and used this code in FormLoad to see WingDings.
private void Form1_Load(object sender, EventArgs e)
{
	this.gridControl1.TableStyle.Font.Facename = "WingDings";
	this.gridControl1.RowCount = 16;
	this.gridControl1.ColCount = 16;
	int c = 32;
	for(int i = 3; i <= 16; ++i)
		for(int j = 1; j <= 16 ; ++j)
		{
			this.gridControl1[i, j].Text = ((char)c).ToString();
			c++;
		}
}

Loader.
Up arrow icon