Wenn Du eine ADOQuery verwendest kann das z.B. so aussehen:
Delphi-Quellcode:
object Form1: TForm1
Left = 192
Top = 124
Width = 870
Height = 640
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object DBGrid1: TDBGrid
Left = 248
Top = 112
Width = 33
Height = 25
[B]DataSource = DataSource1[/B]
TabOrder = 0
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
end
object ADOQuery1: TADOQuery
ConnectionString = 'Provider=MSDASQL.1'
Parameters = <>
Left = 96
Top = 112
end
object DataSource1: TDataSource
[B]DataSet = ADOQuery1
[/B] Left = 176
Top = 112
end
end
Gruß
K-H