Discussion:
wxGridStringTable: Clear the grid without removing table contents
(too old to reply)
Mahmoud Eltahawy
2014-10-09 13:56:54 UTC
Permalink
Hi All,
I am using wxGrid and wxGridStringTable for display packets of certain
protocol,
After all packets are presented in the Grid, I need to only show certain
types of packets in Grid.
I tried to use ShowRow/HideRow functions to do this filtering but it takes
long time to make this change in Grid especially I ma using large number of
packets(rows) in the grid.

Can I clear all the display without clearing the table contents and try to
fill some rows in the Grid?

Thanks
Mahmoud
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-10-10 12:11:18 UTC
Permalink
On Thu, 9 Oct 2014 06:56:54 -0700 (PDT) Mahmoud Eltahawy wrote:

ME> Can I clear all the display without clearing the table contents and try to
ME> fill some rows in the Grid?

This can't be easily done using wxGridStringTable, but this is what custom
grid table (a.k.a. model) classes are for. You can easily define your own
table class which would keep all the data internally, but present only some
subset of it in the grid.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Mahmoud Eltahawy
2014-10-13 16:05:26 UTC
Permalink
Thanks, I made it and it works fine now
Post by Mahmoud Eltahawy
Hi All,
I am using wxGrid and wxGridStringTable for display packets of certain
protocol,
After all packets are presented in the Grid, I need to only show certain
types of packets in Grid.
I tried to use ShowRow/HideRow functions to do this filtering but it takes
long time to make this change in Grid especially I ma using large number of
packets(rows) in the grid.
Can I clear all the display without clearing the table contents and try to
fill some rows in the Grid?
Thanks
Mahmoud
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...