DELphi中创建数据库问题
在Form1中添加了DataSource,Table,和DBGrid三个控件
来实现让DBGrid显示一个数据库(123)中的某一张表(abc)的值,并且可以修改
设置好起属性之后,运行,显示不出表abc中的数据?
这是为什么?
以下是dfm文件
object Form1: TForm1
Left = 192
Top = 107
Width = 696
Height = 480
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 = 80
Top = 128
Width = 273
Height = 273
DataSource = DataSource1
TabOrder = 0
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
end
object DataSource1: TDataSource
DataSet = Table1
Left = 104
Top = 80
end
object Table1: TTable
DatabaseName = '123'
TableName = 'dbo.abc'
Left = 144
Top = 80
end
end