This question is locked. New answers and comments are not allowed.
Hello,
With a RadGridView, in Q3 release, I'm using auto generated columns feature.
When user is reordering columns, they seem disturbed when some of them are not visible.
The code sample below allow you to build a grid and after hiding the first column, when you try to reorder columns, you'll get similar result as the picture attached.
Regards
With a RadGridView, in Q3 release, I'm using auto generated columns feature.
When user is reordering columns, they seem disturbed when some of them are not visible.
The code sample below allow you to build a grid and after hiding the first column, when you try to reorder columns, you'll get similar result as the picture attached.
<UserControl x:Class="TestGridViewColumn.MainPage" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="20" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <StackPanel Orientation="Horizontal" Grid.Row="0" > <CheckBox Content="SampleText" IsChecked="True" Checked="CheckBox_Checked" Unchecked="CheckBox_Checked" /> <CheckBox Content="SampleTitle" IsChecked="True" Checked="CheckBox_Checked" Unchecked="CheckBox_Checked" /> </StackPanel> <telerik:RadGridView AutoGenerateColumns="True" x:Name="RadGridView_Sample" IsReadOnly="True" Grid.Row="1" /> </Grid></UserControl>namespace TestGridViewColumn{ public class SampleClass { public string SampleTitle { get; set; } public string SampleText { get; set; } public decimal SamplePrice { get; set; } public decimal SampleTaxes { get; set; } public DateTime SampleDate { get; set; } } public partial class MainPage : UserControl { private bool _Initialized = false; public MainPage() { InitializeComponent(); _Initialized = true; List<SampleClass> lst = new List<SampleClass>(); lst.Add(new SampleClass() { SampleText = "Sample 1" }); RadGridView_Sample.ItemsSource = lst; } private void CheckBox_Checked(object sender, RoutedEventArgs e) { if(_Initialized) { CheckBox chk = (sender as CheckBox); RadGridView_Sample.Columns[chk.Content.ToString()].IsVisible = chk.IsChecked.Value; } } }}Regards