devexpress sort wont update inner list

devexpress sort wont update inner list

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


panchopc posted on Wednesday, September 13, 2006

hi guys,
im kind of new with csla and with the forum, so forgive if i ask some obvious questions

i use csla 1.5 and vb framework 1.1 along with some devexpress components

i use a  gridcontrol that i populate with populate datareader
its an readonlycolecction,
but if you double click the row you open the root editable object of the focusedrow
everything about that works just fine

the problem apears when i sort any column of the gridcontrol

lets say we have
id          name       phone number
1           frank         3131478
2           mario         3321546
3          alex            3335789


and i sort by name and the sorting works fine it displays this
id          name       phone number
3          alex            3335789
1           frank         3131478
2           mario         3321546

problem is the view changes but the innerlist of my colection stays the same
so if i doubleclic alex and recover the object it recovers
frank cause frank is the value of the first row
so the sort affected the view but it didnt affect my innerlist

ive read several ways to atack this problem but havent found one i truly understand or know how to
implement i hope u can guide me


i just downloaded a sortedcollectionbase so im going to try that
hope u can help
thanks


Copyright (c) Marimer LLC