I have a radgridview like following:
ie a grid with only a single column and cells with content that (I wish) wraps in the available horizontal space. However the content continues "off the screen" and a horizontal scroll bar appears instead. (screenshot, left)
I can't hard code the width of the grid or the column, as it is in a user-adjustable pane.
Furthermore, if I increase the width of the pane, an additional, "dummy" column is added (screenshot, right)
How can I have the text in the grid wrap (highest priority)?
How can I not have the "dummy" column appear (not a major issue)?
Assistance appreciated
Jonathan
<
telerik:RadGridView
x:Name
=
"_Grid"
IsFilteringAllowed
=
"False"
IsReadOnly
=
"True"
SelectionMode
=
"Single"
ShowGroupPanel
=
"False"
ItemsSource
=
"{Binding}"
Grid.Row
=
"7"
CanUserInsertRows
=
"False"
AlternationCount
=
"2"
ActionOnLostFocus
=
"None"
AutoGenerateColumns
=
"False"
Margin
=
"5"
VerticalAlignment
=
"Stretch"
ShowColumnFooters
=
"False"
CanUserFreezeColumns
=
"False"
HorizontalAlignment
=
"Stretch"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Bookmarks"
DataMemberBinding
=
"{Binding BookMarkText}"
TextWrapping
=
"Wrap"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
Grid
HorizontalAlignment
=
"Stretch"
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
TextBlock
TextWrapping
=
"Wrap"
Text
=
"{Binding BookMarkText}"
Style
=
"{StaticResource FieldLabelTextBlock}"
/>
<
TextBlock
TextWrapping
=
"Wrap"
Grid.Row
=
"1"
Text
=
"{Binding Description}"
HorizontalAlignment
=
"Stretch"
/>
</
Grid
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
ie a grid with only a single column and cells with content that (I wish) wraps in the available horizontal space. However the content continues "off the screen" and a horizontal scroll bar appears instead. (screenshot, left)
I can't hard code the width of the grid or the column, as it is in a user-adjustable pane.
Furthermore, if I increase the width of the pane, an additional, "dummy" column is added (screenshot, right)
How can I have the text in the grid wrap (highest priority)?
How can I not have the "dummy" column appear (not a major issue)?
Assistance appreciated
Jonathan