in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

RowCellCustomDrawEventArgs.Appearance.DrawString not trimming with Ellipsis!

Last post 11/20/2008 6:11 AM by Okash Khawaja. 3 replies.
Page 1 of 1 (4 items)
Sort Posts:
Previous Next
  • 11/14/2008 10:56 AM

    RowCellCustomDrawEventArgs.Appearance.DrawString not trimming with Ellipsis!

    Hi,

     In GridView's CustomDrawCell event handler, I am trying to use DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e's e.Appearance.DrawString  method to draw string in a rectangle. However, this method seems to igore the StringFormat argument that I provide. I have set StringFormat's Trimming to StringTrimming.EllipsisPath but I don't see the ellipsis. I have also tried other stringtrimming options but to no avail.

    In addition, I tried setting e.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.EllipsisPath; and

    e.Appearance.Options.UseTextOptions = true; But no effect :(

     

    Please tell, whether I am missing something or some workaround has to be figured out?

     

    Many thanks

    Okash

  • 11/19/2008 8:26 AM In reply to

    Re: RowCellCustomDrawEventArgs.Appearance.DrawString not trimming with Ellipsis!

     Anyone care to reply?

  • 11/19/2008 8:37 AM In reply to

    Re: RowCellCustomDrawEventArgs.Appearance.DrawString not trimmingwith Ellipsis!

    Hi Okash,

    It seems that none of us here knows the answer...

    These forums are mainly peer to peer (customer to customer).

    If you want to get an official 24-hour answer from DevExpress Support Team, it's always better to write to them directly at DevExpress support center.

    Regards,
    Marc Greiner [DX-Squad]
  • 11/20/2008 6:11 AM In reply to

    Re: RowCellCustomDrawEventArgs.Appearance.DrawString not trimmingwith Ellipsis!

     Thanks Marc! I will try support then.

Page 1 of 1 (4 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED