temptable:TTable 中,temptable表他们的列名怎么用中文显示出来
temptable.datesource:=DataSource1;
datasource1.dataset:=query1;
query1.close;
query1.sql.clear;
query1.sql.add('select id,name from tjgl ;
query1.open;
而我想在temptable的列上显示为 编号 和 姓名,而不能id 和name我该怎么设置的啊?

解决方案 »

  1.   

    1 編輯DBGRID列屬性,設計期棒定數據後雙擊DBGRID
    2 使用SELECT語句:Select id as 編號,Name as 姓名 From tjgl
      

  2.   

    Randomize()
    两种方法都是可以的
      

  3.   

    1 編輯DBGRID列屬性,設計期棒定數據後雙擊DBGRID
    2 使用SELECT語句:Select id as 編號,Name as 姓名 From tjgl
    除了这钟方法之外还有其它方法吗?
    因为我字段比较多,假如用这钟方法的话,会比较麻烦的
      

  4.   

    Randomize()
    这种方法怎么用?
    可以简单说明一下吗?
      

  5.   

    就直接这样用呀:Select id as 編號,Name as 姓名 From tjgl