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.
Unfortunately, activation email could not send to your email. Please try again.

Using a grid to simulate a "Character Map" control

Thread ID:





17773 Aug 16,2004 08:12 PM Aug 17,2004 02:00 AM Windows Forms 1
Tags: GridControl
Lori S. Pearsall
Asked On August 16, 2004 08:12 PM

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?

Administrator [Syncfusion]
Replied On August 17, 2004 02:00 AM

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();


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.