for i:=0 to dbgrid1.columns.count doif dbgrid1.columns[i].caption:='字段bai名duzhi' thenbeginx:=i; //第daoi列break;end;