Hi guys.
What would be the best way in xaml to display a RadGridViewColumn only when data is available
e.g.
I have to column in my Radgridview. These columns are binding against an IEnumerable List of Materials (Type: MATERIAL)
If one column doesn not contain any data in all underlying rows, i would like not to display this column. (i only want to display columns with cell values)
How can this be done?
thanks for your help
What would be the best way in xaml to display a RadGridViewColumn only when data is available
e.g.
I have to column in my Radgridview. These columns are binding against an IEnumerable List of Materials (Type: MATERIAL)
If one column doesn not contain any data in all underlying rows, i would like not to display this column. (i only want to display columns with cell values)
How can this be done?
thanks for your help
<
DataTemplate
>
<
tcg:RadGridView
x:Name
=
"RadGridView1"
CanUserFreezeColumns
=
"False"
AutoGenerateColumns
=
"False"
ItemsSource
=
"{Binding MBEP}"
ShowGroupPanel
=
"False"
IsReadOnly
=
"True"
>
<
tcg:RadGridView.Columns
>
<
tcg:GridViewDataColumn
DataMemberBinding
=
"{Binding MATERIAL.Txt1}"
Header
=
"Material Descr."
/>
<
tcg:GridViewDataColumn
DataMemberBinding
=
"{Binding MATERIAL.MatNr}"
Header
=
"Material No"
Width
=
"{Binding MATA.MatNr.Length}"
/>
</
tcg:RadGridView.Columns
>
</
tcg:RadGridView
>
</
DataTemplate
>