Search code examples
janus

Janus GridEx data not binding soon


I am Using Janus.Windows.GridEX control in My User interface.I am trying to bung list of objects.But it is not happening as and when the binding object is assigned to DataSource. Soon after i assign the binding source ,if i check the row count it still shows 0,even though the binding data has list of objects. The collection class which i am trying to bind implements ICollection Here Mytype is a class which i have written.


Solution

  • The reason for this is because Janus GridEx's do not read from the datasource until the control is visible (i.e. the control has loaded). If you need to access the fields in the underlying datastructure, then you can do this through GridEx.Datasource. However, if you need access to bound grid fields like the RowCount, your only solution is access them during the Load event of the parent, or some event that fire's after the control has been setup.

    Hope this helps, Chris