Hello,
Please help me with this error. In my application, i put a RadGridView inside a Scrollviewer as showed the code block below. When i run this application each column becomes so wide, their widths are 10000px, equal to their MaxWidth althrougth i do not set any columns' MaxWidth:
What i really want is that the horizontal scrollbar apprears when the main window is not maximize and disappears when the main window is maximize.
Please help me with this error. In my application, i put a RadGridView inside a Scrollviewer as showed the code block below. When i run this application each column becomes so wide, their widths are 10000px, equal to their MaxWidth althrougth i do not set any columns' MaxWidth:
<
Window
x:Class
=
"GridViewTest.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
ScrollViewer
telerik:StyleManager.Theme
=
"Metro"
HorizontalScrollBarVisibility
=
"Auto"
>
<
telerik:RadGridView
AutoGenerateColumns
=
"False"
ShowGroupPanel
=
"False"
ShowInsertRow
=
"False"
IsReadOnly
=
"True"
RowIndicatorVisibility
=
"Collapsed"
Name
=
"grdItems"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Header1"
Width
=
"50*"
MinWidth
=
"50"
/>
<
telerik:GridViewDataColumn
Header
=
"Header2"
Width
=
"25*"
MinWidth
=
"50"
TextAlignment
=
"Right"
/>
<
telerik:GridViewDataColumn
Header
=
"Header3"
Width
=
"25*"
MinWidth
=
"50"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
ScrollViewer
>
</
Window
>
What i really want is that the horizontal scrollbar apprears when the main window is not maximize and disappears when the main window is maximize.