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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

syncronisation between background datatable and grid

Thread ID:

Created:

Updated:

Platform:

Replies:

35659 Oct 6,2005 07:34 AM UTC May 9,2006 01:02 PM UTC WinForms 5
loading
Tags: GridControl
Catinat Velmourougan
Asked On October 6, 2005 07:34 AM UTC

hi, I have a grid grouping control. I have background datatable as the datasource. I am currently focussed on a cell.I change a value and move to another cell in the same row. I have a method call on my record value changed even that gets the new value , applies calculation procedures and update values to other columns ,based on the new value, on the record.I update to teh background datatable.I dont want to update the grid directly.The issue is I see the changes only when I move to the next row and not to the next column on the same row. How to see the changes made to the background datatable when I move to the next column? In general, How to push changes from the grid to the datatable? and How to push changes from the background table to the grid manually whenever I want them? regards, catinat

Administrator [Syncfusion]
Replied On October 6, 2005 08:09 AM UTC

Try handling the TableControlCurrentCellMoved event.
private void gridGroupingControl1_TableControlCurrentCellMoved(object sender, GridTableControlCurrentCellMovedEventArgs e)
{
	GridCurrentCell cc = e.TableControl.CurrentCell;
	if(cc.MoveFromRowIndex != cc.MoveToRowIndex)
	{
		this.gridGroupingControl1.Table.CurrentRecord.EndEdit();
	}
}
 

Catinat Velmourougan
Replied On October 6, 2005 08:53 AM UTC

hi, In general, How to push changes from the grid to the datatable? and How to push changes from the background table to the grid manually whenever I want them? regards, catinat

Administrator [Syncfusion]
Replied On October 6, 2005 09:54 AM UTC

In either case, I think calling EndCurrentEdit on the currency manager should do it. CurrencyManager cm = this.BindingContext[this.gridGroupingControl1.DataSource, this.gridGroupingControl1.DataMember] as CurrencyManager; cm.EndCurrentEdit();

Administrator [Syncfusion]
Replied On May 9, 2006 11:15 AM UTC

hi, Whenever I call the SyncfusionGridControl.CurrencyManager.EndCurrentEdit(); my scrolling becomes slow. Any reason as why this happens? regards, catinat

Administrator [Syncfusion]
Replied On May 9, 2006 01:02 PM UTC

hi, We discovered that its not endcurrentedit but setvalue which is causing the issue. Any clues? regards, catinat

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.

Warning Icon 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.Close Icon

;