• Disabling the Sort function of a DListView header
    4 replies, posted
I'm looking for a way to disable the Sort function when clicking on a DListView header, or if there is maybe another Derma Control that would be better tailored for this sort of situation. I wish to keep the entries into my DListView in the exact order I entered them in without any possibility of changing them. Solution: myview.Columns[1].DoClick = function() end
[url]http://wiki.garrysmod.com/?title=DListView.SetSortable[/url] [lua] myview:SetSortable(false) // add your items here [/lua] ?
Set that to false and It still allows sorting.
Report it to Garry then. The only other way I can see is to overide the > operator.
Okay, so it has to be done before the columns are initialized... guess that makes sense [editline]27th March 2011[/editline] myview.Columns[1].DoClick = function() end is more what I was looking for
Sorry, you need to Log In to post a reply to this thread.