I often refer to the values in a field in a dbgrid with the index number, for example:
dbgrid1.Fields[8].AsString:= \'SomeValue\'; //index 8 refering to a field named \'P