Feb 13, 2007 #1 daughtery Programmer Dec 12, 2006 66 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 Aug 20, 2001 2,449 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 Sep 20, 2002 1,014 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.