Problem : I have a Java Table which contains more than 4000 rows(rows can be 10K), when i click on Column header["Accoutn Number"], all rows get sorted, so i need to check the sorting on basis of "Account Number".
I am able to fetch number of rows and "Account Numbers" by traversing all the rows through For Loop.
Question 1 : I am storing all the Account Numbers in a Array, but storing all the account numbers is too time consuming because the rows count is like anything.and fetching all the account numbers through for loop.
Also if i'll get these account numbers , i again need to send this array to a Function which perform the Sorting , so it'll be again time taking ...
Does anyone suggest anything on that ?
Question 2 : When i am fetching Account Numbers , i am not getting the correct data , for ex : Account Number displaying on application is "00001", when i am fetching this through GetCellData(0,0) method , it's giving me "1" not "00001", How can i overcome from this ?