procedure TForm1.FormShow(Sender: TObject);
begin
   with dm.ADOQuery1 do
   begin
    dm.ADOQuery1.Close;
    dm.ADOQuery1.SQL.Clear;
     dm.ADOQuery1.SQL.Add('select * from xue');
   dm.ADOQuery1.Open;
     end;
    while not (dm.ADOQuery1.Eof) do
   begin
    dbgrid1.Columns[index].PickList.AddObject(dm.ADOQuery1.Fields[0].AsString);
     next;
     end;
     end;
我想在DBGrid中实现picklist功能,这是我自己写的一段程序,执行有错误,主要是dbgrid1.Columns[index]中的index是什么呀输入什么都不好用 ,不知道是不是我的程序又问题  请大家看看