Problems Binding with DevExpress Grid

Posts   
 
    
Alfredo avatar
Alfredo
User
Posts: 46
Joined: 12-Dec-2004
# Posted on: 04-Feb-2005 19:22:55   

Hi,

I haven't been able to display an entity collection that is passed to a form as a parameter when using DexExpress Grid. I tried with Janus and the standard grid and it works. Perhaps there is a IBindingList property that is missing which DevExpress Grid requires. Here is my scenario:

I have an invoice screen which uses an entity collection component in order to bind the collection to a grid. When I double click a specific invoice, I open a dialog form in order to display en edit the corresponding line items, transfering the line item collection as a parameter for the dialog constructor. Then I assign it to the dialog's entity collection component and re-bind the grid....nothing shows up, and when I rebind the control by calling:

entityCollection1 = lineItemsCollection; // passed in the form's constructor parameter gridcontrol.DataSource = null; gridcontrol.DataSource = entityCollection1;

the collection gets cleared....

Any ideas?

Thanks

Alfredo

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 04-Feb-2005 20:17:54   

No IBindingList option misses which can cause this, so it's beyond me why nothing shows up. what can be is that you perhaps have designed some columns and specified the wrong name for the datasource? or you have to retrieve teh column structure (I don't know the devexpress grid) and you didn't do that?

Frans Bouma | Lead developer LLBLGen Pro