Hi there,
I am fairly new to delphi so please bear with me ....
I have an application that I am working on that has a TDBGrid that is querying an excel spreadsheet, I now want to access the individual data for use within the programme.
I am having problems with finding the correct properties to index a particular value by column and row.
eg:
Year | Jan | Feb | Mar
----------------------
2000 | 20 | 30 | 56
2001 | 43 | 76 | 09
2002 | 21 | 72 | 41
so if I wanted the value for feb - 2001 it would be indexed as column[3] row[2], however it appears the TDBGrid doesn't support this style ??
I can pull data in for a cell by using:
edit1.Text := excelgrid.Datasource.Dataset.Fields[1].AsString;
but can't find a way of specifying the row, can someone please enlighten me as to the correct context for accessing values in a particular cell.
Thanks in advance
I am fairly new to delphi so please bear with me ....
I have an application that I am working on that has a TDBGrid that is querying an excel spreadsheet, I now want to access the individual data for use within the programme.
I am having problems with finding the correct properties to index a particular value by column and row.
eg:
Year | Jan | Feb | Mar
----------------------
2000 | 20 | 30 | 56
2001 | 43 | 76 | 09
2002 | 21 | 72 | 41
so if I wanted the value for feb - 2001 it would be indexed as column[3] row[2], however it appears the TDBGrid doesn't support this style ??
I can pull data in for a cell by using:
edit1.Text := excelgrid.Datasource.Dataset.Fields[1].AsString;
but can't find a way of specifying the row, can someone please enlighten me as to the correct context for accessing values in a particular cell.
Thanks in advance