有很多种方式,代码还是你自己写吧.:)
采用1、计算字段
    2、用DBGrid1DrawColumnCell事件,瞒天过海
    3、采用query替代table

解决方案 »

  1.   

    wish this can help:
    add a calculated field named 'sex',and set its type 'string'
    oncalculate:
    if table1.fieldbyname('yourfild')=1 then
    table1sex.value:='男'
    eles if table1.fieldbyname('yourfild')=1 then
    table1sex.value:='女';
      

  2.   

    sorry,  
    if table1.fieldbyname('yourfild')=1 then
    table1sex.value:='男'
    eles if table1.fieldbyname('yourfild')=-1 then
    table1sex.value:='女';
      

  3.   

    if table1.fieldbyname('yourfild')=1 then
    table1sex.value:='男' else table1sex.value:='女';
      

  4.   

    先建一个新的field如sex
    if table.fieldbyename('性别').value=1 then
    table.fieldbyname('sex').value:='男' else
    .......='-1' then.....='女';