04-19-2010 07:26 AM
Can any one tell me how can i create a tableField in blackberry application ,i want that the column will sort the contain of the column ,for exemple , if the column contain liste of date (ligne1: 19/04/2010 Ligne2: 18/04/2010 )when i select the title of the column this will be sort it so i will have such this :
THESE Date are organized when i select onther time i will have somthing as :
Thanks in advance
04-19-2010 07:36 AM
listfield with a simplesortingvector as a base
04-19-2010 08:15 AM
thank you very much for relyng;
but for me i must have many columns and each on have a sort to do for exemple colomun date will sort by date ,column name will sort by alphabi a,b,c to organize them .
do you think that using listfield will resolve my prblm or i must have a table or such thing ...????
04-19-2010 08:19 AM
you can exchange the comparator of a simplesortingvector and re-sort it with ease.
listfield works well in this case. all you need is an additional control that triggers the re-sort, like some buttonfields or a specially crafted titlefield.