在程序中我用一个dbgrid连接一个数据源,打开数据库中的表后我使用了
  dbgrid1.columns.clear   (此为出错位置) 
      出错信息:list index out of bound(0)
 之后的程序大意为:
  使用dbgrid1.column.add .....