D
darkblood
Unregistered / Unconfirmed
GUEST, unregistred user!
这是我的代码,运行会抱错,是不是必须增加dbgrid的记录,才能赋值,怎么增加记录?
for i:=0 to Table1.FieldCount-1 do
begin
Dbgrid1.Fields.SetFieldType(Table1.Fields.DataType);
Dbgrid1.Fields.AsString:=Table1.Fields.AsString;
end;
for i:=0 to Table1.FieldCount-1 do
begin
Dbgrid1.Fields.SetFieldType(Table1.Fields.DataType);
Dbgrid1.Fields.AsString:=Table1.Fields.AsString;
end;