Hi! I'm just wondering how will I be able to access the fixed columns in GridCtrl. I used SetFixedCols(1) but everytime I use grid.GetColumns(0), it returns the 2nd column.
Does anyone know how to access the fixed columns? It would be a big help!
unodgs Messages: 1367 Registered: November 2005 Location: Poland
Ultimate Contributor
You can use GetRaw(int r, int c) to get the value, but if you would like to access ItemRect there is no way currently. If you want to customise painting fixed cells you can do:
class MyDisplay: public GridDisplay {
void PaintFixed(....) {
... your custom painting code...
}
}
GridCtrl ctrl;
MyDisplay myDisplay;
ctrl.SetDisplay(myDisplay);