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 2, 2005 01:45 AM UTC

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.
Up arrow icon