Board index » delphi » Accessing cell of dbgrid

Accessing cell of dbgrid


2004-01-27 06:14:52 AM
delphi25
I want to print my data of a dbgrid, can i access directly to the cells like
for c:=1 to colcount do print_header(cells[c-1,0])
for c:=1 to colcount do
for r:=1 to rowcount do
print_data(cells[c-1,r-1])
thanks
hermann
 
 

Re:Accessing cell of dbgrid

You must read values in fields of linked dataset and iterate thru records
instead
"Hermann Hass" <XXXX@XXXXX.COM>writes
Quote
I want to print my data of a dbgrid, can i access directly to the cells
like
for c:=1 to colcount do print_header(cells[c-1,0])
for c:=1 to colcount do
for r:=1 to rowcount do
print_data(cells[c-1,r-1])

thanks
hermann