Click to See Complete Forum and Search --> : DB Grid Display


June 19th, 2000, 01:55 PM
I am needing to take information from a dbGrid control, and display it in a label. I don't know how to take information from the grid other than from the default text property, which only returns the first column. How do I pull subsequent columns from a dbGrid?

Any help would be GREATLY appreciated! Thanks!

2dogs
June 21st, 2000, 12:38 PM
In code do the following
dim something as string ' declare a string variable
dbgrid1.col = 2 ' select other columns as required.
dbgrid1.row = 2 ' select other rows as required.

something = dbgrid1.text ' this will return the value in column 2 row 2 of the dbgrid.


good luck

bob