Hello
I am doing something wrong when I use the grid and assign values to it programmatically. When I use the grid where when the grid is loaded and it is empty I can change the values from numerical data to string data and there is no issue. But when I load data into the grid from values I have stored in my database I am getting a convert error
"Econvert error with message "somestring" is not a valid integer"
The way I am populating the grid is as follows:
ProfGrid1.Cells[ColCount, RowCount].Value := DataModule1.ListClassSource.DataSet.FieldByName('Result').AsVariant;
The Result field in my database is an integer, so it must be picking it up from there?
Any suggestions
Thanks
Jake