Available Attribute and Infragistics WinGrid

I am struggling with the behavior of the Databind Infragistics WinGrid. You can manually define the data schema (what I'm doing), and you can also tell the grid when snapping that I don’t want the grid to display additional bands or columns, even if I have their data source.

DisplayLayout.NewBandLoadStyle = Infragistics.Win.UltraWinGrid.NewBandLoadStyle.Hide;
DisplayLayout.NewColumnLoadStyle = Infragistics.Win.UltraWinGrid.NewColumnLoadStyle.Hide;

The problem is that the ALLWAYS grid tries to get the value of the property, even if it is not located in the column layout. However, it is possible to use the browseable attribute in a domain object:

[Browsable(false)]

and the grid will ignore the property (it will not try to use the getter property). But I think this is a chrome workaround. Does anyone know an effective way to instruct the grid only to get the value for the elements defined in the layout.

Many thanks

+3
1

DisplayLayout MaxBandDepth. .

.. ( ), MaxBandDepth 1, .

0

Source: https://habr.com/ru/post/1791467/


All Articles