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
195
UltraWinGrid Excel Export w/BindingSource
posted

I've got an interesting issue with the UltraWinGrid when exporting to Excel.

My data is an Invoice object from NHibernate with a HasMany collection of Detail records.  

IF I bind my UltraWinGrid to a BindingSource and set the datasource of the BindingSource to a List<Invoice> and export the grid, I do NOT get any of the detail records, although I DO get an expansion indicator.

IF I bind my UltraWinGrid directly to the List<Invoice> and export the grid, I DO get the detail records exported.

This can be seen in the attached spreadsheets

If I handle the RowExporting event, I find the row that does NOT export the data has no columns in the detail band, while the one that does export properly has all the columns.  Again, the only thing changing is the grid is bound to a binding source vs. binding directly to the data.

ultraGridJobs_BindingSource.zip