or
<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>
<
telerik:GridViewImageColumn
DataMemberBinding
=
"{Binding Bild}"
Width
=
"50"
IsEnabled
=
"False"
ImageStretch
=
"None"
/>
public class Calls
{
public string Name { get; set; }
public string Tele { get; set; }
public string time { get; set; }
public string Datum { get; set; }
public Image bild { get; set; }
}
ObservableCollection<
Calls
> _CallCollection = new ObservableCollection<
Calls
>();
_CallCollection.Add(new Calls
{
Name = name_s,
Tele = tele_s,
time = time_s,
Datum = datum_s,
bild = image
});
var image = new Image();
image.Source = new BitmapImage(new Uri("pack://application:,,/Images/settings.png", UriKind.Absolute));
Hi,
I am using radGridView with 2 level hierarchy with HierarchyChildTemplate. I don't want to show any column headers for the lowest level grid and I set ShowColumnHeaders to False. I do not want to show that there's an inner grid at the first child level. How can I remove the space around the radGridView?
I do not have any margins, padding, border
thickness properties. I tried removing the whole HierarchyChildTemplate
but still there is empty space. Can anyone please help where that space is coming. Please refer to attached pictures for clarity. Requirement is that the area marked with green should not appear.
Thanks,
Rosy