W
wp531
Unregistered / Unconfirmed
GUEST, unregistred user!
大家好,有个问题难住小弟了:
怎样使DBGrid.Columns[1]的下拉列表里包含另一个表的全部字段?
代码如下:
//DBGrid1.Columns[1].InheritsFrom(TListbox);
for i:=0 to Form1.Query1.RecordCount-1 do
DbGrid1.Columns[1].PickList:=Form1.Query1.fields.fieldname;
错误提示:List index out of bounds(0)
怎样使DBGrid.Columns[1]的下拉列表里包含另一个表的全部字段?
代码如下:
//DBGrid1.Columns[1].InheritsFrom(TListbox);
for i:=0 to Form1.Query1.RecordCount-1 do
DbGrid1.Columns[1].PickList:=Form1.Query1.fields.fieldname;
错误提示:List index out of bounds(0)