Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TAdvStringGrid
How to use TAdvGridReplaceDialog

Drop a TAdvGridReplaceDialog on the form and a TAdvStringGrid.
Add the code:
begin
  AdvGridReplaceDialog1.Grid := AdvStringGrid1;
  AdvGridReplaceDialog1.Execute;
end;
Fill in the dialog a value that can be found in a grid cell and a value it should replace and press "Replace All".

TAdvGridReplaceDialog is not applicable for TDBAdvGrid, only for TAdvStringGrid. This is because, to change values in the TDBAdvGrid, values should be changed on dataset level, via DBField, not just with grid.Cells[].