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

GridView throws design time error after solution is upgraded to VS2010

4 Answers 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 25 May 2010, 02:56 PM
I have a gridview in a window that displays/loads fine, in design view, for a VS 2008 solution.  i have upgraded the solution to VS 2010 and now receive the error below when in design view (still runs without error, just design time error).

System.NullReferenceException

Object reference not set to an instance of an object.

at Telerik.Windows.Controls.GridView.GridViewItemsControl.DisconnectFromDataEvents() in c:\Builds\WPF_Scrum\X1_Q1_2009\Sources\Development\WPF\GridView\GridView\GridViewItemsControl.cs:line 824 at Telerik.Windows.Controls.GridView.GridViewItemsControl.GridViewItemsControl_Loaded(Object sender, RoutedEventArgs e) in c:\Builds\WPF_Scrum\X1_Q1_2009\Sources\Development\WPF\GridView\GridView\GridViewItemsControl.cs:line 548 at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent) at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root) at MS.Internal.LoadedOrUnloadedOperation.DoWork() at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 25 May 2010, 03:11 PM
Hi,

According to the the stack trace this is very old version of RadGridView - Q1 2009. Can you upgrade to the latest binaries (Q1 2010 Sp1)?

Kind regards,
Vlad
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Eric
Top achievements
Rank 1
answered on 27 May 2010, 07:23 PM
I have upgraded the binaries and I now receive the following build error.  Did this property name change?

Error 1 The property 'ColumnsWidthMode' does not exist in XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView'. Line 21 Position 54. C:\_Trunk\PrintClient\tags\1.0.0 (EDW 7.4.2 Release)\Code\PrintEnablementClient\WindowNotebookManagement.xaml 21 54 PrintEnablementClient
0
Eric
Top achievements
Rank 1
answered on 27 May 2010, 07:26 PM
There are others that can't be resolved as well.

MultipleSelect


For a GridViewDataColumn:

HeaderText

0
Milan
Telerik team
answered on 28 May 2010, 07:36 AM
Hello Eric,

ColumnWidthsMode is now called ColumnWidth, MultipleSelect = true should be transformed to SelectionMode=Extended and HeaderText is now called simply Header.

Hope this helps.


Sincerely yours,
Milan
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Eric
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Eric
Top achievements
Rank 1
Milan
Telerik team
Share this question
or