I'm trying to bind a WinForms DataGridView to an EntityCollection<T>
from an EntityFramework4 object. The trouble is, I can't figure out how to get it to sort (automatically).
All I'm doing is setting the BindingSource's DataSource property to the entity's collection.
MyBindingSource.DataSource = CurrentItem.InvoiceNotes;
I really hope there's a simple configuration I can add to this to get it to work; I really don't want to have to wrap my EF Collection in a new BindingList container.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…