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.

Data changes in DataSource not reflected in current row

Thread ID:

Created:

Updated:

Platform:

Replies:

29709 Jun 1,2005 07:11 AM Jun 1,2005 09:45 PM Windows Forms 1
loading
Tags: Grouping
Johann
Asked On June 1, 2005 07:11 AM

Hi, While changing data in the GridGroupingControl I have an event that fires on the DataSource that changes the value of other columns on the same row. While this row is the selected row in the GroupingGrid I cannot see the changes, I tried everything I could think of. When I click on the next row, the changes appears, but I need to see the changes as I Tab to the next column on the active row. Any advice? Thanks. Cheers Johann

Administrator [Syncfusion]
Replied On June 1, 2005 09:45 PM

Here is code that work for me in a tableControlCurrentCellMoved handler.
private void gridGroupingControl1_TableControlCurrentCellMoved(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCurrentCellMovedEventArgs e)
{
	GridCurrentCell cc = e.TableControl.CurrentCell;
	if(cc.MoveToRowIndex == cc.MoveFromRowIndex)
	{
		GridTableCellStyleInfo style = e.TableControl.Model[cc.RowIndex, cc.ColIndex];
		GridRecord rec = style.TableCellIdentity.DisplayElement as GridRecord;
		if(rec != null)
			rec.EndEdit();
	}
}

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.

;