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.
Unfortunately, activation email could not send to your email. Please try again.

Problem with adding new rows - Urgent - help please!!

Thread ID:

Created:

Updated:

Platform:

Replies:

79666 Feb 19,2009 05:17 PM Feb 23,2009 09:48 AM Windows Forms 3
loading
Tags: GridControl
Siva
Asked On February 19, 2009 05:17 PM

Hi,
I use WinForms grid grouping control. I bind an empty datatable to the grid. When I try to add new rows, I get a message "AddNew not called".

When I bind a datatable having at leaset one row, everything works fine.

I use version 4.3.0.30 with .NET1.1. Could someone let me know what is going wrong?

Thanks!


Rajadurai C [Syncfusion]
Replied On February 20, 2009 10:41 AM

Hi Siva,

Thanks for your interest in Syncfusion products.

Please try calling the AddNew() method while forcing the new record to add to the grid.

this.gridGroupingControl1.Table.AddNew();


This initializes the table by calling BeginEdit() method.

Regards,
Rajadurai


Siva
Replied On February 20, 2009 12:28 PM

Thanks for the reply.

Where am I suppoed to call "this.gridGroupingControl1.Table.AddNew();" ( I mean in which event handler )?

Thanks again!

>Hi Siva,

Thanks for your interest in Syncfusion products.

Please try calling the AddNew() method while forcing the new record to add to the grid.

this.gridGroupingControl1.Table.AddNew();


This initializes the table by calling BeginEdit() method.

Regards,
Rajadurai




Rajadurai C [Syncfusion]
Replied On February 23, 2009 09:48 AM

Hi Siva,

You can try to handle this method invocation in CurrentCellEditingComplete event by checking if the currentcell is in addnewrecord.

Regards,
Rajadurai


CONFIRMATION

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.

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.

;