Retrieve values from grid issue wxpython Topic is solved

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
User avatar
pikkip
Knows some wx things
Knows some wx things
Posts: 37
Joined: Mon Sep 26, 2016 6:08 am

Retrieve values from grid issue wxpython

Post by pikkip »

I have inserted certain values to a grid. I am trying to retrieve those values using GetTable().GetValue(row,col). My grid has two columns. One contains name and the other , type. Type option is given in combobox. The problem is that when I get the retrieved values, I get all of them except the value in combobox of last row. Is it because the combobox is in selected state??? Can anyone help me out??? :(
Manolo
Can't get richer than this
Can't get richer than this
Posts: 827
Joined: Mon Apr 30, 2012 11:07 pm

Re: Retrieve values from grid issue wxpython

Post by Manolo »

The combobox must be "associated" with the table, as an attibute of type editor.
See the grid sample.
User avatar
pikkip
Knows some wx things
Knows some wx things
Posts: 37
Joined: Mon Sep 26, 2016 6:08 am

Re: Retrieve values from grid issue wxpython

Post by pikkip »

Is it GridCellChoiceEditor???
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Retrieve values from grid issue wxpython

Post by ONEEYEMAN »

Hi,
Just compile and run the sample and you will see what it uses.

Thank you.
User avatar
pikkip
Knows some wx things
Knows some wx things
Posts: 37
Joined: Mon Sep 26, 2016 6:08 am

Re: Retrieve values from grid issue wxpython

Post by pikkip »

Got it, thank you
Post Reply