PDA

View Full Version : DBGrid Content


murphys
08-14-2001, 07:23 AM
HI

how can i get the content of a dbgrid certain cell ?

10x
Amos

HTML
08-14-2001, 08:14 AM
Hello,

OK, Table1 is the Table to which the DBgrid is connected to.

First set the records number if you need to:

Table1.RecNo=3; {doesnt work with dbase tables}

To get the contents of a specific cell:

String1: string;


String1:=Table1.FieldByName('FieldName').AsString;

you can use AsInteger , AsCurrency , AsFloat , which ever one fits you needs.

I hope this is what you needed.

GoodLuck.