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

reference not set to an instance of an object

1 Answer 134 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David Sandor
Top achievements
Rank 1
David Sandor asked on 20 Oct 2008, 02:23 PM
I posted this last week and it seems it dissappeared for some reason.

So I have a GridView for Winforms control on a form that refreshes the dataset every 3 minutes.  Randomly during the day my users are reporting that the entire GridView control turns white and there is a red X in the control.  This is the entire GridView control's canvas.  Very wierd.  This is the error that the user's receive:

(There is a checkbox column in the Master template, this is not a hierarchical dataset.  It is flat.)

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

 

************** Exception Text **************

System.NullReferenceException: Object reference not set to an instance of an object.

   at Telerik.WinControls.UI.GridRowElement.SetSelectedState(Boolean showSelection)

   at Telerik.WinControls.UI.RadGridView.OnEnter(EventArgs e)

   at System.Windows.Forms.Control.NotifyEnter()

   at System.Windows.Forms.ContainerControl.UpdateFocusedControl()

 

 

************** Loaded Assemblies **************

mscorlib

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

OpenOrderQueue

    Assembly Version: 1.0.0.0

    Win32 Version: 1.0.0.0

    CodeBase: file:///C:/Users/dschoenradt/AppData/Local/Apps/2.0/3JD20TPC.H0L/GLXBNWY2.3H9/open..tion_24c31b70a076bf0e_0001.0001_afe2b025b268abb6/OpenOrderQueue.exe

----------------------------------------

System.Windows.Forms

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Drawing

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System.Web.Services

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll

----------------------------------------

System.Xml

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

System.Configuration

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Data

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

bd1mghel

    Assembly Version: 1.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

Telerik.WinControls.GridView

    Assembly Version: 7.1.1.0

    Win32 Version: 7.1.1.0

    CodeBase: file:///C:/Users/dschoenradt/AppData/Local/Apps/2.0/3JD20TPC.H0L/GLXBNWY2.3H9/open..tion_24c31b70a076bf0e_0001.0001_afe2b025b268abb6/Telerik.WinControls.GridView.DLL

----------------------------------------

Telerik.WinControls.UI

    Assembly Version: 7.1.1.0

    Win32 Version: 7.1.1.0

    CodeBase: file:///C:/Users/dschoenradt/AppData/Local/Apps/2.0/3JD20TPC.H0L/GLXBNWY2.3H9/open..tion_24c31b70a076bf0e_0001.0001_afe2b025b268abb6/Telerik.WinControls.UI.DLL

----------------------------------------

Telerik.WinControls

    Assembly Version: 7.1.1.0

    Win32 Version: 7.1.1.0

    CodeBase: file:///C:/Users/dschoenradt/AppData/Local/Apps/2.0/3JD20TPC.H0L/GLXBNWY2.3H9/open..tion_24c31b70a076bf0e_0001.0001_afe2b025b268abb6/Telerik.WinControls.DLL

----------------------------------------

System.Design

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll

----------------------------------------

Accessibility

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

----------------------------------------

System.Drawing.Design

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing.Design/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll

----------------------------------------

TelerikCommon

    Assembly Version: 7.1.1.0

    Win32 Version: 7.1.1.0

    CodeBase: file:///C:/Users/dschoenradt/AppData/Local/Apps/2.0/3JD20TPC.H0L/GLXBNWY2.3H9/open..tion_24c31b70a076bf0e_0001.0001_afe2b025b268abb6/TelerikCommon.DLL

----------------------------------------

 

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

 

For example:

 

<configuration>

    <system.windows.forms jitDebugging="true" />

</configuration>

 

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 21 Oct 2008, 11:29 AM
Hi David Sandor,

Your previous post is in our support ticketing system, which you can access through your Client.net account --> My Support Tickets. Since we need a sample project to research the issue, I have changed your forum post to a support ticket so that you can attach a sample application.

I am looking forward to help you with the issue.

Greetings,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
David Sandor
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or