Ampersands in RadGridView (Windows)

3 posts, 0 answers
  1. Nordy
    Nordy avatar
    14 posts
    Member since:
    Aug 2007

    Posted 10 Dec 2007 Link to this post

    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. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 11 Dec 2007 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nordy
    Nordy avatar
    14 posts
    Member since:
    Aug 2007

    Posted 11 Dec 2007 Link to this post

    Great!  Thanks for the quick reply.  I'll do that.
Back to Top