I'm thoroughly confused.. Please help.
Then following xaml displays two columns of text, followed by two columns of checkboxes... But you can see that the third column, "tight Hole" does not define a checkbox style. I removed the cell header style also, and I still have a checkbox column there! What am I doing wrong?
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="Property ID" DataMemberBinding="{Binding PropertyID}" IsReadOnly="True" HeaderCellStyle="{StaticResource HeaderStyle}" Width="100" TextAlignment="Left" />
<telerik:GridViewDataColumn Header="Property Name" DataMemberBinding="{Binding Property.PropertyName}" IsReadOnly="True" HeaderCellStyle="{StaticResource HeaderStyle}" Width="200" TextAlignment="Left" />
<telerik:GridViewDataColumn Header="Tight Hole" DataMemberBinding="{Binding Property.TightHole}" IsReadOnly="True" Width="100" TextAlignment="Left" />
<telerik:GridViewCheckBoxColumn Header="Read Only" DataMemberBinding="{Binding ReadOnly}" IsReadOnly="False" HeaderCellStyle="{StaticResource HeaderStyle}" Width="100" CellStyle="{StaticResource StyleChkBoxCenter}" />
Just for FYI purposes, I define the Grid like this:
<telerik:RadGridView x:Name="gvProperties" Grid.Row="2"
ItemsSource="{Binding WellAssignments}"
Margin="0,5,0,0"
AutoGenerateColumns="False" CanUserFreezeColumns="False"
CanUserDeleteRows="True" CanUserInsertRows="False" ShowGroupPanel="False"
IsFilteringAllowed="False" IsReadOnly="False"
EnableLostFocusSelectedState="False"
GridLinesVisibility="None"
ScrollMode="RealTime"
SelectionMode="Extended"
IsSynchronizedWithCurrentItem="True"
>
The attached images show what I have and what I need. I need that third column to be text!
Then following xaml displays two columns of text, followed by two columns of checkboxes... But you can see that the third column, "tight Hole" does not define a checkbox style. I removed the cell header style also, and I still have a checkbox column there! What am I doing wrong?
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="Property ID" DataMemberBinding="{Binding PropertyID}" IsReadOnly="True" HeaderCellStyle="{StaticResource HeaderStyle}" Width="100" TextAlignment="Left" />
<telerik:GridViewDataColumn Header="Property Name" DataMemberBinding="{Binding Property.PropertyName}" IsReadOnly="True" HeaderCellStyle="{StaticResource HeaderStyle}" Width="200" TextAlignment="Left" />
<telerik:GridViewDataColumn Header="Tight Hole" DataMemberBinding="{Binding Property.TightHole}" IsReadOnly="True" Width="100" TextAlignment="Left" />
<telerik:GridViewCheckBoxColumn Header="Read Only" DataMemberBinding="{Binding ReadOnly}" IsReadOnly="False" HeaderCellStyle="{StaticResource HeaderStyle}" Width="100" CellStyle="{StaticResource StyleChkBoxCenter}" />
Just for FYI purposes, I define the Grid like this:
<telerik:RadGridView x:Name="gvProperties" Grid.Row="2"
ItemsSource="{Binding WellAssignments}"
Margin="0,5,0,0"
AutoGenerateColumns="False" CanUserFreezeColumns="False"
CanUserDeleteRows="True" CanUserInsertRows="False" ShowGroupPanel="False"
IsFilteringAllowed="False" IsReadOnly="False"
EnableLostFocusSelectedState="False"
GridLinesVisibility="None"
ScrollMode="RealTime"
SelectionMode="Extended"
IsSynchronizedWithCurrentItem="True"
>
The attached images show what I have and what I need. I need that third column to be text!