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 » Wed Nov 16, 2016 7:24 am

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
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 696
Joined: Mon Apr 30, 2012 11:07 pm

Re: Retrieve values from grid issue wxpython

Post by Manolo » Wed Nov 16, 2016 4:06 pm

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 » Thu Nov 17, 2016 7:17 am

Is it GridCellChoiceEditor???

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3409
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Retrieve values from grid issue wxpython

Post by ONEEYEMAN » Thu Nov 17, 2016 3:23 pm

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 » Fri Nov 18, 2016 5:46 am

Got it, thank you

Post Reply