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.

Refresh in GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

37039 Nov 15,2005 03:04 AM Nov 15,2005 01:21 PM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 15, 2005 03:04 AM

Please provide some help for the following questions. #1 How do I refresh the grid''s content/style/formatting when I pick a different value from a combobox for a cell? When I pick a different value "PrepareViewStyleInfo" doesn''t get triggered until I click on some other cell. #2 I have a collection business object bind to grid, changing a value in a cell cause recalculation of each property within the business object. How do I refresh the grid with new changes? Thanks, Sanjay

Administrator [Syncfusion]
Replied On November 15, 2005 03:43 AM

1) Try calling grid.CurrentCell.ConfirmChanges in the grid.CurrentCellCloseDropDown event. 2) If your collection implements IBindingList in a suitable manner, then you would not have to do anything to get the grid to refresh. But otherwise, you will have to make the grid redraw itself at that cell that is changes outside the grid. One way you can do this is to explicitly call grid.Refresh or grid.RefreshRange. Or, you could call grid.Invalidate or grid.InvalidateRect followed by grid.Update to trigger the drawing as well.

Administrator [Syncfusion]
Replied On November 15, 2005 01:12 PM

--1) Try calling grid.CurrentCell.ConfirmChanges in the grid.CurrentCellCloseDropDown event. it didn''t work. would you suggest something else. thanks,

Administrator [Syncfusion]
Replied On November 15, 2005 01:21 PM

You can also try calling grid.CurrentCell.EndEdit in CurrentCellCloseDropDown. What kind of grid are you using? If it is a GridDataBoundGrid, then you can try calling grid.CurrentCell.EndEdit(); grid.Binder.CurrentCell.EndEdit();

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.

;