xavendano
xavendano

Reputation: 133

Improve the view of one long cell with RadGridView

It has a RadGridView (WEB WPF Application) the corresponding data set including an identifier and a description that usually is so long that it not is clearly legible in the row.

How to modify the grid so that when having a selected row that can be "expanded" or shown on multiple lines to make it more readable?

Upvotes: 0

Views: 976

Answers (1)

Omri Btian
Omri Btian

Reputation: 6547

Try making a DataTemplate contaning a TextBlock with text wrapping to display your data.

        <DataTemplate x:Key="ExpedibleCellTemplate">
            <TextBlock Text="{Binding Description}" TextWrapping="Wrap">
        </DataTemplate>

Then in your RadGridView set the appropriate Column's data Template

<telerik:GridViewDataColumn CellTemplate="{StaticResource ExpedibleCellTemplate}"/>

Upvotes: 2

Related Questions