The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team November 15, 2005 08:43 AM UTC
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.
ADAdministrator Syncfusion Team November 15, 2005 06:12 PM UTC
--1) Try calling grid.CurrentCell.ConfirmChanges in the grid.CurrentCellCloseDropDown event.
it didn''t work. would you suggest something else.
thanks,
ADAdministrator Syncfusion Team November 15, 2005 06:21 PM UTC
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();