We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon