Enter data in a dbgrid



Hi all,

I've got the following problem. I have a DbGrid with some different
colors for some cells or rows. This is done on the onDrawColumnCell.
It's working fine, but as soon as I want to change some data inside a
cell, the color filling interfears and it enters the data in the last
line.
Can anyone help me?

Peter

.



Relevant Pages

  • Re: Color row of DBGrid
    ... How do I replace the "DrawCell(ACol, ARow, Rect, State);" statement ... since the OnDraw event of a DBGrid supplies Columns coordinates rather then ... I think you should do ALL the drawing of the cells in OnDrawColumnCell. ... I have written a program with a grid with user-chosen colors, ...
    (comp.lang.pascal.delphi.misc)
  • Re: Color row of DBGrid
    ... I'll try to make a DBGrid example this afternoon and tell you this evening. ... How do I replace the "DrawCell(ACol, ARow, Rect, State);" statement ... I think you should do ALL the drawing of the cells in OnDrawColumnCell. ... I have written a program with a grid with user-chosen colors, ...
    (comp.lang.pascal.delphi.misc)
  • Accessing cell of dbgrid
    ... I want to print my data of a dbgrid, can i access directly to the cells like ... for c:=1 to colcount do ... for r:=1 to rowcount do ...
    (borland.public.delphi.database.ado)
  • Re: Countif/And Function
    ... >> criteria. ... >> this be done using the COUNTIF or AND functions?? ... >> count the number of cells in column E with a value of N in column E AND a ... Prev by Date: ...
    (microsoft.public.excel.misc)
  • Re: Not allowing users to enter data into certain cells if another cel
    ... > Alok Joshi ... >> I would like to NOT allow the user to enter any data into cells ... >> Maybe this can be done with VBA?? ... Prev by Date: ...
    (microsoft.public.excel.programming)