这是我在网上找的一个方法
unit DBGRIDexel;
interface
uses ComObj,DBGrids,Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,