Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
Binding to Datasource having multiple relations at the root level.
posted

Hi all,

 I have a DataSource which has 5 relations at the root level which have their own sub relations. When i try to databind my wingrid by setting the datasource it automatically selects one of the 5 relations at the root level and displays the columns in the grid. The datamember now cannot be set to any of the other four relations. It throws an error Property value not valid : Object reference not set to an instance of an object.

I feel Infragistics defintely will support datasource with more than one data relation. Are we missing anything here ??

This requirement is very very essential for us. Someone pls help us.

  • 469350
    Verified Answer
    Offline posted

     Hi Prenil,

          The grid can only show one root-level table.You should be able to choose which one by setting the DataMember. If this is resulting in an exception, then I would need to know where the exception is occurring and maybe see the call stack to know why. My guess is that it's something in an event of the grid, like InitializeLayout or InitializeRow which is expecting a column that isn't there.