某个字段是货币型字段,在对应该字段的那例(在DBGridEh1中)怎么显示成金额类型,象速达一样?

解决方案 »

  1.   

    只是显示数据的话你可以用TlistView
    var list :TListItem
    begin
      Query.sql.clear;
      Query.sql.text := 'seclect ****';
      Query.sql.open;
      Query.first;
      while not Query.eof
      begin
         List := ListVew1.item.add
         List.caption := CurrToStrf(Query.fieldbyName('money').ascurrency,ffcurrency,2);
        Query.next;  end;
    end;
      

  2.   

    设置字段的DISPLAYMORMAT为 .00 要好些。
      

  3.   


    我是这样做的,
    将字段添加到ADOTABLE,或ADOQUERY中去,然后将其Currency属性设为TRUE
      

  4.   

    设置字段的Currency为True显示为¥123,123.45
      

  5.   

    请关注此贴,提供四张界面,比速达酷多了。http://expert.csdn.net/Expert/topic/1649/1649010.xml?temp=.9739954