共用方式為


RecordSource Property

Specifies the source of data to which the Grid control is bound. Available at design time; read/write at run time.

Grid.RecordSource[ = cName]

Property Values

  • cName
    cName is typically the alias name of a cursor or the name of a table. The RecordSource property specifies the main cursor that the grid is bound to.

Remarks

If you specify a record source for a grid, you can specify the contents of individual columns in the grid by setting their ControlSource property. If you do not set the ControlSource property for a column in the grid, the column displays the next available undisplayed field of the grid's record source.

See Also

ControlSource property | Order Property | RecordMark Property | RecordSourceType Property

Applies To: Grid