DataGridView SortedBindingList

DataGridView SortedBindingList

Old forum URL: forums.lhotka.net/forums/t/8650.aspx


MTmace posted on Thursday, March 11, 2010

I have a sortedbindinglist of a business list base class.
Then I bind the sortedbinding list to the binding data source object. Then I bind that to the datagridview.

I can modify the business list base class via the datagridview until I apply the sort. Once I apply the sort I get the Edit level mismatch in acceptchanges error.

I tried to remove sort before I applyedit but I get the same error.

How can I bind a sortedbindinglist to my DataGridView?

MTmace

ajj3085 replied on Friday, March 12, 2010

Is this collection a child of another business object?  What version of Csla are you talking about?

MTmace replied on Friday, March 12, 2010

No, it is not a child.
If I bind the collection directly to my UI without the SortedBindingList class my editing works as expected.
The error only occurs when I apply the sort to the sortedbindinglist.
I am using CSLA 3.8.2

Copyright (c) Marimer LLC