Feb 13, 2007 #1 daughtery Programmer Joined Dec 12, 2006 Messages 66 Location US I have a DBGrid that has 5 rows and 5 columns. How can I retrieve (Get) the value that is held in the 5th row 5th column?
I have a DBGrid that has 5 rows and 5 columns. How can I retrieve (Get) the value that is held in the 5th row 5th column?
Feb 13, 2007 #2 genomon Programmer Joined Aug 20, 2001 Messages 2,449 Location US dbGridName.Row = 5 dbGridName.Col = 5 YourVariableName = dbGridName.Text Just be careful that you Dim your variable with a compatible data type as stored in the grid... Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. Upvote 0 Downvote
dbGridName.Row = 5 dbGridName.Col = 5 YourVariableName = dbGridName.Text Just be careful that you Dim your variable with a compatible data type as stored in the grid... Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.
Feb 13, 2007 #3 SBerthold Programmer Joined Sep 20, 2002 Messages 1,014 Location DE >dbGridName.Row = 5 This may not produce the expected results if there are more rows than visible. dbGridName.Row = 5 is only the firth row of the visible rows, not the fifth row in the entire set of records. Upvote 0 Downvote
>dbGridName.Row = 5 This may not produce the expected results if there are more rows than visible. dbGridName.Row = 5 is only the firth row of the visible rows, not the fifth row in the entire set of records.