This is a migrated thread and some comments may be shown as answers.

How to hide weird ghost column

2 Answers 164 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeramy
Top achievements
Rank 1
Jeramy asked on 21 Jan 2016, 12:04 AM

I cannot seem to figure out what this column is or how to get rid of it. There is a very narrow column that appears all the way to the left in the GridView by default. It has no content, but can be moved around in between the other columns. Can anyone help?

I've attached an image to explain what I am talking about. Here's my xaml for the GridView...

 <telerik:RadGridView x:Name="VariablesGridView"
                             ItemsSource="{Binding Sequence.Variables}"
                             CanUserSortColumns="False"
                             CanUserInsertRows="False"
                             AutoGenerateColumns="False"
                             RowDetailsVisibilityMode="VisibleWhenSelected"
                             ShowGroupPanel="False"
                             RowIndicatorVisibility="Collapsed"
                             SelectionMode="Multiple">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" IsReadOnly="False" IsFilterable="False"/>
                <telerik:GridViewDataColumn CellTemplate="{StaticResource VariableTypeTemplate}" Header="Type" IsReadOnly="False" IsFilterable="False"/>
                <telerik:GridViewDataColumn DataType="system:Object" DataMemberBinding="{Binding Value}" Header="Value" IsReadOnly="False" IsFilterable="False"/>
            </telerik:RadGridView.Columns>

            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu x:Name="VariablesContextMenu"
                                                ItemContainerStyle="{StaticResource RadMenuItemStyle}"
                                                Opened="ContextMenu_Opened"
                                                IconColumnWidth="0"
                                                ItemClick="ContextMenu_ItemClick" />
            </telerik:RadContextMenu.ContextMenu>
            
        </telerik:RadGridView>

2 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 25 Jan 2016, 02:52 PM
Hello Jeramy,

Looking at the image, the element appears to be the frozen columns separator that's related to RadGridView's frozen columns feature. You can disable it by setting the CanUserFreeze property to false and this article provides some additional details on the functionality.

I hope this helps.

Regards,
Petya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jeramy
Top achievements
Rank 1
answered on 26 Jan 2016, 02:02 PM
Thanks, Petya! This solved my issue.
Tags
GridView
Asked by
Jeramy
Top achievements
Rank 1
Answers by
Petya
Telerik team
Jeramy
Top achievements
Rank 1
Share this question
or