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

Ampersands in RadGridView (Windows)

2 Answers 17 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nordy
Top achievements
Rank 1
Nordy asked on 10 Dec 2007, 06:39 PM
The data that is being bound to the RadGridView control in my WinForms app has ampersands in it, and the are being changed to underscores per the normal Windows hot key marking scheme (i.e. &File results in File, with the F underlined).  Can this be shut off?  Or do I need to handle each row as it's inserted?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 11 Dec 2007, 12:54 PM
Hi Jamie,

Thank you for writing. We are aware of this issue and apologize for not having a solution for you yet. The problem will be addressed in our upcoming release later this month.

As a temporary solution I would suggest using the CellFormatting event and changing manually the PaintTextFormat property.

Refer to the code snippet below:

this.radGridView1.CellFormatting +=new CellFormattingEventHandler(radGridView1_CellFormatting); 
void radGridView1_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e) 
    e.CellElement.PaintTextFormat.HotkeyPrefix = HotkeyPrefix.None; 
 } 
 

In case you need additional assistance, we will be glad to help you.

 
Best wishes,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Nordy
Top achievements
Rank 1
answered on 11 Dec 2007, 03:21 PM
Great!  Thanks for the quick reply.  I'll do that.
Tags
GridView
Asked by
Nordy
Top achievements
Rank 1
Answers by
Jack
Telerik team
Nordy
Top achievements
Rank 1
Share this question
or