Hi! To convert a string to a number use one of the following ToLong() ToULong() ToDouble() To convert a number into a string use Format() or Printf(). If you want your grid to take floating point variables you'll have to derive your own wxGridTable from wxGridTableBase and set your table as the underlying table for the grid using SetTable(). I'm currently doing something like that because I need a grid for displaying property values for a resoucre editor. By standard wxGrid uses a wxGridStringTable, that's why it stores all values as strings.
upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |