DBGrids and getting cell information
Posted on 2001-08-30
i have a grid that is derived from DBCustomGrid and all is ok.
i am trying to add 2 events that i had in my previous Grid that are OnCellColorEvent and a OnSelectedCellColorEvent.
now i did this by getting the Draw cell property overriding what i needed to, added in the events and every thing was fine. ( oh and after you draw the cell you have to redraw the text onto the grid too from the cells variable )
Now the problem i have is that the DBgrid has no cells property and navigating the cleint dataset i have build into my grid and trying to draw the cells is not exactly working out the way i planned...
so on the drawcell event in a dbgrid is there an easy equivelant to the cells property so i can occomplish my mission......?
from the grid rather that the ClientDataset preferably.