On Tuesday 26 April 2016 08:21:26 Martin Schreiber wrote: > On Monday 25 April 2016 20:31:46 Krzysztof wrote: > > Hi Martin, > > > > I have own data in TList, I already have sort functions for items but > > how to connect it to TDrawgrid? Grid should emit some event when > > clicked on header column so I could sort list > > In normal datagrids sorting is done by the mergesort mechanism of the grid > and the comparison functions of the TDatalist descendants in the > datacolumns or by comparison in T*Grid.OnSort event. Because you don't use > TDatalist you can't use that, please try T*Grid.OnSortChanged instead. > Please additionally activate TCustomGrid.OptionsGrid og_sorted and og_customsort (git master 055154f363ab422e5ce88af018a2a68bba4da8e6).
Martin ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

