Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
525
Shorten long text items with "..."
posted

How would I go about shortening datagrid item items with "..." when their text no longer fits into a column?

Thanks,


Jamie

Parents
  • 17559
    Verified Answer
    posted

    Hello Jamie,

     

    The XamDataGrid uses XamTextEditor in its cells by default in the columns that represents string values. In order to show “…” when the content is too long you can retemplate the default style of the XamTextEditor and set the TextTrimming property of the texbox. You can find the default templates on your computer in the file C:\Program Files (x86)\Infragistics\NetAdvantage 2010.3\WPF\DefaultStyles\Editors\EditorsGeneric_Express.xaml. Please find the attached sample where I show you how you can achieve the desired functionality.

     

    If you need any additional assistance do not hesitate to ask.

    TextTrimingAllColumns.zip
Reply Children