English 中文(简体)
How to refresh an Infragistics UltraGrid?
原标题:

I am using Infragistics UltraGrid with datasouce Windows Bindingsouce. On change, I provide datasouce to Bindingsouce and call DataBinding of UltraGrid. Value in the datasouce of Bindingsouce changes, but that is not reflected in the UltraGrid.

最佳回答

Your binding source must raise some event to trigger grid refresh. For example, if you are using BindingList it should raise the ListChanged event.

问题回答

Also, make sure that whatever class that you are using as your Binding Object implements INotifyPropertyChanged so that when you update the BindingObject at run time it gets channeled to BindingSource which eventually gets picked up by Grid.

i.e.:

BindingList<Foo> lstItems = new BindingList<Foo>;
BindingSource bso = ;
bso.DataSource = lstItems; 
Grid.DataSource = bso; 

public class Foo :  INotifyPropertyChanged

see MDSN article here

Also depends if you changing the collection outside Grid (at runtime, because if you do, you need to use BindingList<T> and assign it to BindingSource





相关问题
• 接送一页

录像图像和javascript文档位于服务器上:“

Infragistics components on build server

I have "inherited" a new (old?) Winforms project and would like to put it onto our build server (Bamboo). That build server has only the absolute minimum (.NET 3.5 and not much more) installed, and we ...

Styling WPF controls inline with Infragistics themes

we are using Infragistics WPF controls (e.g. xamDataGrid, xamDockManager etc), and we will be using the Infragistics Office 2007 Blue theme which these controls support. We also want to style the ...

Why the toolbar button icon is grey at runtime?

I"m setting the icon of a toolbar button (using Infragistics component library for the toolbar), The problem is that on design time the icon is showing normally. But at runtime the icon become greyed, ...

specific context menu per UltraTreeNode

I have a problem using Infragistics UltraTree control. I need a way to add a specific context menu to an UltraTreeNode. I saw that there is a contextMenu property for the UltraTree, but I need a ...

How to refresh an Infragistics UltraGrid?

I am using Infragistics UltraGrid with datasouce Windows Bindingsouce. On change, I provide datasouce to Bindingsouce and call DataBinding of UltraGrid. Value in the datasouce of Bindingsouce changes, ...

热门标签