I have done a simple function to write data to a GridCtrl:
void Grid_Write(int row, int col, char *str)
When the row or the column does not exist, it does:
if (row > grid.GetRowCount()-1) {
for (int i = grid.GetRowCount(); i < row+1; ++i)
grid.AddRow("", 100);
}
Doing that with more than one column I get this: the first columns get so thin that are almost hidden.
Do you know how to get all columns with same width if they - as in this case - are not added to the grid at the same time and data is included in between?