This question is locked. New answers and comments are not allowed.
What is the best practice for clearing columns from a RadGridView that contains a GridViewSelectColumn? Currently, dgrid.Columns.Clear() crashes with a NullReferenceException.
public MainPage() { InitializeComponent(); Loaded += new RoutedEventHandler(Page_Loaded); } void Page_Loaded(object sender, RoutedEventArgs e) { GridViewSelectColumn dgsc = new GridViewSelectColumn(); dgrid.Columns.Add(dgsc); } private void Test_Click(object sender, RoutedEventArgs e) { dgrid.Columns.Clear(); }