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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataboundGrid RefreshRow

Thread ID:





35913 Oct 13,2005 02:24 PM UTC Oct 13,2005 02:57 PM UTC WinForms 1
Tags: GridControl
Asked On October 13, 2005 02:24 PM UTC

Hi, I have a question about the RefreshRange. When I change A row in our Datatable I cant seem to get the correct Index to tell the grid to refresh. If the grid isn''t sorted there is no problem but when it is I don''t have the cirrect index. I don''t want to loop over the Models datatable and check every row if its the correct one. Have anybody an idea how to solve this. Regards, Erwin davidse

Administrator [Syncfusion]
Replied On October 13, 2005 02:57 PM UTC

Normally, you do not have to do anything to get a GridDataBoundGrid to refresh if you change values in a DataTable that is the DataSource of the grid. The grid listen to the currency managers ListChanged event and responds by refreshing the row that is changed. Now this does require that you do something to force this event to be raised. Normally, it is raised as the currencymanager changes position to move off a modified record. In your case, are you changing values in teh same row and want them to appear refreshed immediately in teh grid without moving off the editing row? If so, you might try calling DataRow.EndEdit after you make a change. I think this will trigger the ListChanged event on the currencymanager.


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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