|Subject||Re: [IBO] Accessing SELECTED rows in a grid|
>What you have to do, is to loop through your dataset to see if one ore more records are selected. If
> Sorry Florian, but IB_Query1.selected[I] don't change the actual
> record I think, only test if RecNO gived is or not Selected...
> I need first to PUT in this ROW before check any field.
the record is selected, then do something with it. In code, it looks like this:
while not MyQuery.Eof do
if MyQuery.Selected[i] = True then
MyQuery.FieldByName('String1').AsString := 'FooBar';
MyQuery.FieldByName('String2').AsString := 'BarFoo';