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.

Getting reference to new row in Grid which is being added but not finished

Thread ID:

Created:

Updated:

Platform:

Replies:

16560 Jul 19,2004 10:51 PM Jul 20,2004 01:19 AM Windows Forms 1
loading
Tags: GridControl
Ranjana Gundawar
Asked On July 19, 2004 10:51 PM

Hello, My application includes a DataBoundGrid having 5 columns (3 in display + 2 hidden). To add new row, User has to click into first column (or cell) of new row and then go to the search panel to select the value to be filled in that cell. Filling of this cell is being done in a method which populates that cell in following steps. 2)Get Currency Manager 3)Get current row by Casting CurrencyManager.current to DataRowView. 4)Update this row with value received from search panel so that grid will reflect that value to User. But CurrencyManager.Current never returns new row which is being added. I tried to get count of CurrencyManager.List which comes out as count of existing rows in datasource as well as Grid. Can u please suggest a way of getting a reference to new row being added but not been added completely.

Administrator [Syncfusion]
Replied On July 20, 2004 01:19 AM

The grid does not add the row to the datasource until after the user leaves the row. One way around this problem is to add the row yourself in the the grid''s RowEnter event. Another way is to use the IBindingList.ListChanged event to catch the adding of the new row, and do your work at that point. Here is a forum thread that has code snippets for both techniques. Maybe one of this techniques will let you do what you need. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=16352

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.

;