[Q] wxGrid's row label

Hello,

I have a grid which originally have, say, 5 rows. I capture the
user-selected rows with OnRangeSelect event and GetSelectedRows().
Later I deleted all 5 rows and called wxGrid.Refresh(), and the
grid contents and row label were blanked accordingly. However,
when I click the row label column, it can still capture the now
non-existent row label and returns the row number accordingly.
Why didn't the row label go away?

Thanks in advance!

···

--
Best regards,
Herman

Hi,

Solved when I added appropriate wxGridTableMessage,
ProcessTableMessage handling.

···

--
Best regards,
Herman

Monday, August 18, 2003, 12:17:57 PM, you wrote:

Hi,

Solved when I added appropriate wxGridTableMessage,
ProcessTableMessage handling.

Oops, sorry. Doing these didn't solve my original problem.

···

--
Best regards,
Herman

Herman Lo wrote:

Hello,

I have a grid which originally have, say, 5 rows. I capture the
user-selected rows with OnRangeSelect event and GetSelectedRows().
Later I deleted all 5 rows and called wxGrid.Refresh(), and the
grid contents and row label were blanked accordingly. However,
when I click the row label column, it can still capture the now
non-existent row label and returns the row number accordingly.
Why didn't the row label go away?

Thanks in advance!

It's probably a bug. Please submit a detailed bug report with a category of wxGrid.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!