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

DataGridView ShowInsertRow Error

3 Answers 33 Views
GridView
This is a migrated thread and some comments may be shown as answers.
shiras abdulrahman
Top achievements
Rank 1
shiras abdulrahman asked on 12 Apr 2011, 01:06 PM
Hi
I have a hierarchical grid, I have enabled the ShowInsertRow for both the parent and child grid.
now when i click on the parent show insert row, a new row appears and i am able to add a value into it. if I TAB out of the editting row there is no issues, problem starts if i use the mouse and click on any other parent row.  the below error is displayed .

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Tue, 12 Apr 2011 12:00:46 UTC

Message: Unhandled Error in Silverlight Application
Code: 4004   
Category: ManagedRuntimeError      
Message: System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.GridView.GridViewDataControl.get_IsInEditMode()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.OnCurrentCellInfoChanging(GridViewCellInfo oldCell, GridViewCellInfo newCell)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.set_CurrentCellInfo(GridViewCellInfo value)
   at Telerik.Windows.Controls.GridView.GridViewCell.OnGotFocus(RoutedEventArgs e)
   at System.Windows.Controls.Control.OnGotFocus(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)    

Line: 62
Char: 13
Code: 0

For the parent grid, I have the following events,  

 

 

BeginningEdit

 

 

RowEditEnded
CellValidating

Please let me know your thoughts, this is a highly important delivarable. request you to respond ASAP.

 

 

 

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 Apr 2011, 01:54 PM
Hi,

 Can you post more info about the grid version? Is it our latest official - Q1 2011?

All the best,
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
Ravi
Top achievements
Rank 1
answered on 12 Apr 2011, 03:01 PM
Yes,

I am using the latest version. Please find the file attached with the workflow. Need solution ASAP as i got a demo.

Thanks,
Shiras
0
Yordanka
Telerik team
answered on 14 Apr 2011, 03:25 PM
Hi David,

Could you send us a demonstration project where the exception appears? We have tried the scenario and no exception can be reproduced. Here is a short video demonstrating the steps we took for testing the case.
 
Kind regards,
Yordanka
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
shiras abdulrahman
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ravi
Top achievements
Rank 1
Yordanka
Telerik team
Share this question
or