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

RadGridView throws object reference not set to an instance error

1 Answer 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Vasudevan Balakrishnan
Top achievements
Rank 1
Vasudevan Balakrishnan asked on 31 May 2012, 06:56 PM
I'm relatively new user of Telerik controls.

I have a grid with a group column, and the grouped column is not visible. Clicking on group record throws an exception. It is not consistent, but I do get this error every now and then. I would appreciate if anyone could point me in the right direction.

Version
: 2012.1.326.40
Call Stack:

  Telerik.Windows.Data.dll!Telerik.Windows.Data.ObjectDataBinder.GetValue(object bindingSource = null, string propertyPath = "Manager") Line 26 + 0x3 bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridViewBoundColumnBase.GetCellContent(object item = null) Line 1213 + 0x1d bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridViewBoundColumnBase.CreateCellElement(Telerik.Windows.Controls.GridView.GridViewCell cell = {Telerik.Windows.Controls.GridView.GridViewCell}, object dataItem = null) Line 179 + 0x11 bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCell.CreateCellElement(Telerik.Windows.Controls.GridViewColumn column = {Telerik.Windows.Controls.GridViewDataColumn}, object dataItem = null) Line 549 + 0x1a bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCell.SetCellElement() Line 522 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewRow.PrepareCell(Telerik.Windows.Controls.GridView.GridViewCellBase cellBase = {Telerik.Windows.Controls.GridView.GridViewCell}, Telerik.Windows.Controls.GridViewColumn column = {Telerik.Windows.Controls.GridViewDataColumn}) Line 961 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCellsPanel.PrepareCell(Telerik.Windows.Controls.GridView.GridViewCellBase cell = {Telerik.Windows.Controls.GridView.GridViewCell}, Telerik.Windows.Controls.GridViewColumn column = {Telerik.Windows.Controls.GridViewDataColumn}) Line 410 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCellsPanel.GetVirtualizedCell(Telerik.Windows.Controls.GridViewColumn column = {Telerik.Windows.Controls.GridViewDataColumn}, bool createIfNull = true) Line 367 + 0xf bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCellsPanel.RealizeAndMeasureCells(int startIndex = 0, int predictedLastIndex = 7, System.Func<int,int> calculateNextIndex = {Method = {System.Reflection.RuntimeMethodInfo}}) Line 334 + 0xe bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCellsPanel.UpdateVirtualizedCells() Line 269 C#
> Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(System.Windows.Size availableSize = {System.Windows.Size}) Line 306 C#

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 01 Jun 2012, 06:48 AM
Hello,

 We believe that we already fixed this in our latest internal build. Please get the build from your account, try it in your scenario and let us know how it goes. 

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Vasudevan Balakrishnan
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or