TRVDataSourceLink.Execute

<< Click to display table of contents >>

TRVDataSourceLink.Execute

Assigns DataSource to all data-aware controls in Editor.

procedure Execute(OnlyToUndefined: Boolean);

Normally, you do not need to call this method, because DataSource is assigned to to all data-aware controls in Editor when they are inserted (for example, when loaded from RVF).

This method may be useful if you want to change DataSource in controls that were already inserted in Editor.

Parameters:

If OnlyToUndefined = True, DataSource will be assigned only to controls that do not have another DataSource assigned (i.e. for controls having DataSource = nil). Otherwise, it will be assigned to all data-aware controls in Editor.