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
60
Multi-Band-Problem with Array - Or how to bind an Array-Property as band?
posted

Hello,

 

I've a class "Log" and that has a property (JobLogs) of an array of a "JobLog"-class... my ultragrid is binded to a log-datasource and the datamember-property is set to "JobLogs"... so far so good.

The JobLog-class has a property (Messages) of an array of JobLogMessage-class. Now I whant to have a sub-band for the Messages-Property, but the grid does not recognize the Messages-property. When I create e property of List<JobLogMessage> instead of an array, it works, but thats not what I whant.

can anybody help?

  • 37774
    Suggested Answer
    posted

    I don't think that there's any way to do this with simply an array.  The .NET BindingManager doesn't recognize an array as a chaptered column (i.e. a type that represents a child relationship); you should be able to see the same behavior with the .NET DataGrid.

    -Matt