DbGrid显示不出查询记录 小问题: ADOQUERY通过SQL语句查询,我希望在DbGrid中显示查询出的数据,不知道是否DbGrid。属性=ADOQUERY.ExecSQL.有关联才可以,还有我就是不知道DbGrid后跟什么属性,谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看下我这个的设置object Form1: TForm1 Left = 192 Top = 110 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 OnCreate = FormCreate PixelsPerInch = 96 TextHeight = 13 object Button1: TButton Left = 576 Top = 32 Width = 75 Height = 25 Caption = 'Button1' TabOrder = 0 end object DBGrid1: TDBGrid Left = 136 Top = 208 Width = 320 Height = 120 DataSource = DataSource1 TabOrder = 1 TitleFont.Charset = DEFAULT_CHARSET TitleFont.Color = clWindowText TitleFont.Height = -11 TitleFont.Name = 'MS Sans Serif' TitleFont.Style = [] end object DataSource1: TDataSource DataSet = ADOQuery1 Left = 144 Top = 56 end object ADOQuery1: TADOQuery Active = True ConnectionString = 'Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security In' + 'fo=False;Initial Catalog=bnbridgeinfo;Data Source=.' CursorType = ctStatic Parameters = <> SQL.Strings = ( 'select * from baseinfo') Left = 312 Top = 64 endend ADOQUERY.ExecSQL是没返回值的,用ADOQUERY.Open 我也遇到过这个问题,connectionstring中没有选择4.0 OLE,而是选择的ODBC结果可以了 没有设置DBGRID的datasource属性吧 请问大家 SND_ASYNC 和 SND_MEMORY 在delphi 中是什么意思? 启动一个程序,该程序启动时发现当前已经运行本程序一个实例时的处理问题 idhttp上传功能,请那个给点提示 请教关于Tlistview控件的双击事件 苦闷啊!散分!(是走?我留!)可以散200分的感觉...爽 一个关于键盘编程问题,超简单的。 暂别CSDN,散分 三维解析系统delphi2.0升级deliphi7.0 delphi 7控制WORD打印 急!急!急!关于SQL的问题?(一定给分) 初学delphi,有个问题占用问题请教. 菜鸟初学问题:连接远程数据库的方法
object Form1: TForm1
Left = 192
Top = 110
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
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object Button1: TButton
Left = 576
Top = 32
Width = 75
Height = 25
Caption = 'Button1'
TabOrder = 0
end
object DBGrid1: TDBGrid
Left = 136
Top = 208
Width = 320
Height = 120
DataSource = DataSource1
TabOrder = 1
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
end
object DataSource1: TDataSource
DataSet = ADOQuery1
Left = 144
Top = 56
end
object ADOQuery1: TADOQuery
Active = True
ConnectionString =
'Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security In' +
'fo=False;Initial Catalog=bnbridgeinfo;Data Source=.'
CursorType = ctStatic
Parameters = <>
SQL.Strings = (
'select * from baseinfo')
Left = 312
Top = 64
end
end
用ADOQUERY.Open