Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > GridView > GridViewDataColumn carriage returns

Answered GridViewDataColumn carriage returns

Feed from this thread
  • Posted on Feb 7, 2012 (permalink)

    Hi there,

    I have data that contains carriage returns, I want the cell to visually truncate the text instead of expanding the row vertically to accommodate it.  What are my options?

    Many thanks in advance

    Reply

  • Answer Vanya Pavlova Vanya Pavlova admin's avatar

    Posted on Feb 7, 2012 (permalink)

    Hi Chris,

     

    Have you checked this thread "Truncate display text in cell"



    Kind regards,
    Vanya Pavlova
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Posted on Feb 7, 2012 (permalink)

    Great thanks; I elected to do the follwing:

     

     

    <telerik:GridViewDataColumn.CellEditTemplate>

     

    <DataTemplate>

     

    <TextBox AcceptsReturn="True" MaxHeight="250" Width="300" Text="{Binding Path=Value,Mode=TwoWay}"/>

     

    </DataTemplate>

     

    </telerik:GridViewDataColumn.CellEditTemplate>

     

    <telerik:GridViewDataColumn.CellTemplate>

     

    <DataTemplate>

     

    <TextBlock MaxHeight="18" Width="300" TextWrapping="NoWrap" Text="{Binding Path=Value}"/>

     

    </DataTemplate>

     

    </telerik:GridViewDataColumn.CellTemplate>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > GridView > GridViewDataColumn carriage returns
Related resources for "GridViewDataColumn carriage returns"

Silverlight Grid Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]