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. Image for the cookie policy date

Data changes in DataSource not reflected in current row

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

1 Reply

AD Administrator Syncfusion Team June 1, 2005 08: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();
	}
}

Loader.
Live Chat Icon For mobile
Up arrow icon