I would like to have a grid view like excel which I can use the
cell(col,row) to access and change the value(text and bgcolor). Anyone
has some sample for me? I know the treeview can solve this problem but
it is too complex for me and I just want a simple grid view like excel.
For now, I only can think to write a model class for the treeview that
can be access using the row, column. But how do I initialize the col,
row model is still fuzzy for me. I am still new to gtk also.
Or may be a model like this:
col, row, text, bgcolor #model header
0, 0, ‘text’, ‘blue’
0, 1, ‘another’, ‘yellow’
1, 0, ‘blah’, ‘blue’
1, 1, ‘hello’, ‘red’
In this case, how do I access it specific cell using the cell(row,
column)? Need to iterate all the row until it match the col, row? seems
uneffective for me.
thanks in advance