We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DomainGridDataControl AddNew

Thread ID:





110932 Sep 2,2013 01:55 AM UTC Oct 10,2013 11:23 AM UTC Silverlight 1
Tags: GridControl
Chui Tey
Asked On September 2, 2013 01:55 AM UTC

I'm having difficulty adding new rows with the DomainGridDataControl. Are there any samples I can look at?

Whenever I double click on the blank row to try to insert data, I get the NullPointerException at.

   at Syncfusion.Windows.Data.CollectionViewAdv.AddNew()
   at Syncfusion.Windows.Controls.Grid.GridDataCurrentRecordManager.BeginEdit(Int32 recordIndex)
   at Syncfusion.Windows.Controls.Grid.GridDataCurrentRecordManager.OnGridCurrentCellStartEditing(Object sender, SyncfusionCancelRoutedEventArgs args)
   at Syncfusion.Windows.Controls.Grid.GridControlBase.OnCurrentCellStartEditing(SyncfusionCancelRoutedEventArgs e)
   at Syncfusion.Windows.Controls.Grid.GridControlBase.RaiseCurrentCellStartEditing()
   at Syncfusion.Windows.Controls.Grid.GridCurrentCell.BeginEdit(Boolean focusCellUIElement)
   at Syncfusion.Windows.Controls.Grid.GridSelectCellsMouseController.MouseDown(MouseControllerEventArgs e)
   at Syncfusion.Windows.Controls.Scroll.MouseControllerDispatcher.MouseDown(MouseButtonEventArgs e)
   at Syncfusion.Windows.Controls.Scroll.MouseControllerDispatcher.OnMouseDown(MouseButtonEventArgs e)
   at Syncfusion.Windows.Controls.Scroll.ScrollControl.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   at Syncfusion.Windows.Controls.Grid.GridControlBase.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.OnMouseLeftButtonDown(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

Thangapriya V [Syncfusion]
Replied On October 10, 2013 11:23 AM UTC

Hi Chui,

Sorry for the delay caused.

In our implementation, we get the type of the column properties from its default constructor. When we try to type in AddNewRow, it will try to get the model details. But in DomainGridDataControl, we could not get column properties from the model, since the model is Domain Service Entity class and the Entity class does not have the default constructor. So NullReferenceException will be thrown when we try to type in AddNewRow, as the constructor is set to null. We have fixed that exception in our current source.

However, we do not provide confidential information and patches in the general forum.

You can also create an incident in our Direct trac account with the below link.


That would be helpful for us to fix the issues and provide you the patch through incident.

But we regret to let you know that we do not have support for adding new row by using AddNewRow functionality in DomainGridDataControl.

Please let us know if you need any further assistance.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon