Freeze few column in wxgrid

随声附和 提交于 2019-12-13 17:36:37

问题


I have a window that is split to have a custom tree ctrl on left panel and a grid table on the right. Now I want the grid table to display the information in such a way that first few columns freeze (not scroll) while the remaining data has an option to scroll horizontally. I have no clue how to proceed, please help. I have seen that splitter window can be of some help, can someone provide a sample code.


回答1:


There is no built-in way to do that. You would need to use grids and keep them kind of synced. See https://groups.google.com/forum/?fromgroups#!topic/wxpython-users/Lbt5EW6sRDo

You should ask on the wxPython mailing list too. I swear I saw something on this topic where someone had created some kind of solution, but I can't find it now.



来源:https://stackoverflow.com/questions/11628835/freeze-few-column-in-wxgrid

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!