Hi,
I am using a radgridview , in which i have few gridviewdatacolumn , i am adding a group descriptor for one of the column , and my requirement is, that column should be hidden from radgridview since i have grouped based on that,
further GridViewColumn.ShowColumnWhenGrouped Property is not available to me as i am using an older version of telerik Dll, is their any other way to solve this problem?
following is the xaml of code for more clarity, so i want column Element Path to be hidden as it is used in group descriptor -
I am using a radgridview , in which i have few gridviewdatacolumn , i am adding a group descriptor for one of the column , and my requirement is, that column should be hidden from radgridview since i have grouped based on that,
further GridViewColumn.ShowColumnWhenGrouped Property is not available to me as i am using an older version of telerik Dll, is their any other way to solve this problem?
following is the xaml of code for more clarity, so i want column Element Path to be hidden as it is used in group descriptor -
<telerik:RadGridView.Columns> <telerik:GridViewDataColumn IsReadOnly="True" IsGroupable="True" Header="Element Path" DataMemberBinding="{Binding ElementPath}" Focusable="False" Width="Auto" TextAlignment="Left" IsEnabled="False"/> <telerik:GridViewDataColumn IsReadOnly="True" IsGroupable="True" Header="Category" DataMemberBinding="{Binding CategoryName}" Focusable="False" Width="Auto" TextAlignment="Left" IsEnabled="False" /> <telerik:GridViewDataColumn IsReadOnly="True" IsGroupable="False" Header="Name" DataMemberBinding="{Binding Name}" Width="Auto" Focusable="False" TextAlignment="Left" IsEnabled="False" /> <telerik:GridViewDataColumn IsReadOnly="True" IsGroupable="False" Header="Description" HeaderTextAlignment="Left" DataMemberBinding="{Binding Description}" Focusable="False" Width="200" TextAlignment="Left" IsEnabled="False" /> <telerik:GridViewDataColumn IsReadOnly="True" IsGroupable="True" Header="Type" DataMemberBinding="{Binding CannonicalType}" Focusable="False" TextAlignment="Left" Width="Auto" IsEnabled="False" /> <telerik:GridViewDataColumn Header="Value" IsGroupable="False" Width="180" DataMemberBinding="{Binding Value,Mode=TwoWay,ValidatesOnExceptions=True}" CellTemplateSelector="{StaticResource CellTemplate}" CellEditTemplateSelector="{StaticResource EditTemplateSelector}" SortingState="None" IsSortable="True" TextAlignment="Left" IsEnabled="True"> <telerik:GridViewDataColumn.CellStyle> <Style BasedOn="{StaticResource {x:Type tt:GridViewCell}}" TargetType="tt:GridViewCell"> <Setter Property="FontWeight" Value="Normal" /> <Style.Triggers> <DataTrigger Binding="{Binding Path=IsDefaultValueModified,Mode= TwoWay}" Value="true"> <Setter Property="FontWeight" Value="Bold" /> </DataTrigger> <DataTrigger Binding="{Binding Path=ParameterInEditMode, Mode=TwoWay}" Value="true"> <Setter Property="FontStyle" Value="Italic" /> </DataTrigger> <DataTrigger Binding="{Binding IsEnabled}" Value="true"> <Setter Property="IsEnabled" Value="true" /> <Setter Property="Focusable" Value="true" /> </DataTrigger> <DataTrigger Binding="{Binding IsEnabled}" Value="false"> <Setter Property="IsEnabled" Value="false" /> <Setter Property="Focusable" Value="false" /> </DataTrigger> </Style.Triggers> </Style> </telerik:GridViewDataColumn.CellStyle> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn IsGroupable="False" IsReadOnly="True" Header="Resolved Value" DataMemberBinding="{Binding ResolvedValue}" TextAlignment="Left" Width="180" IsEnabled="False"/> </telerik:RadGridView.Columns> <telerik:RadGridView.GroupDescriptors> <telerik:ColumnGroupDescriptor> <telerik:ColumnGroupDescriptor.Column> <telerik:GridViewColumn Header="Element Path" GroupMemberPath="ElementPath" /> </telerik:ColumnGroupDescriptor.Column> </telerik:ColumnGroupDescriptor> </telerik:RadGridView.GroupDescriptors>