wxGrid vs wxListCtrl

Milan Babuskov milanb at panonnet.net
Mon Feb 19 02:15:54 PST 2007


Matías Szeftel wrote:
>>With wxGrid I can use virtual table that would fetch the data the way
>>I need it (possibly by altering ORDER BY clause on database query).
>>Sorting in memory doesn't seem problematic either (it's only ~1000
>>items after all).
> 
> You should store the data in memory and sort it there. Using the ORDER
> BY method will be very very expensive in my experience.

Not really. ORDER BY can use index in database, and load is on the 
server. Even without index, having a powerful server to do ORDER BY on, 
say, million records is *much* faster than fetching million records to 
client and sorting them.


>>No idea how this works with wxListCtrl?
> 
> I usually use a derived wxListCtrl in virtual mode and a wxArray of my
> row objects so I can plug my sorting methods.

Good, noted.


Thanks.

-- 
Milan Babuskov
http://www.guacosoft.com
http://www.flamerobin.org





More information about the wx-users mailing list