Search code examples
haskellwxhaskell

How do I extract data from a wxHaskell grid control?


I've created a wxHaskell grid control, and it displays fine, the user can enter data etc.

It's also fairly obvious how to programatically write data into it (gridSetCellValue).

But how do I read the data from it? There's gridGetTable which might or might not be relevant, but that returns a GridTableBase and while I can see that it's indirectly a pointer type, I can't find anything in the API to actually get at the data in it.


Solution

  • To get the data of a specific cell you can just use gridGetCellValue, which is the obvious counter part to gridSetCellValue.