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.

DataboundGrid RefreshRow

Thread ID:

Created:

Updated:

Platform:

Replies:

35913 Oct 13,2005 10:24 AM Oct 13,2005 10:57 AM Windows Forms 1
loading
Tags: GridControl
e.davidse
Asked On October 13, 2005 10:24 AM

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 10:57 AM

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.

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.

;