其实你问了三个问题都是同一种解决方案。
你完全可以在绑定DataGridView时,循环数据集去替换你的字段值。

解决方案 »

  1.   

    查询数据的时候 直接把值 给查询出来。select B.id,A.TypeName from A 
    inner join B on  B.TypeId = A.Id或者select  (case a.TypeId when 1 than '是' else ‘否’ end) as typeName from table as a
      

  2.   

    可以在查询数据的时候就处理好。
    select case(列1) when 0 then '是' else '否' end as 列4,列2,列3 from table1 where 1=1
      

  3.   

    cellformatting中对显示的值格式化
      

  4.   

    3、 combobox2我采用绑定数据--数据库的值也是数字
    public void getcbogzlx()
             {
                 GZ_GzlxBLL getgzlxdb = new GZ_GzlxBLL();
                 this.comboBox1.DataSource = getgzlxdb.GetGzlxData();
                 this.comboBox1.DisplayMember = "gzmc";
                 this.comboBox1.ValueMember = "bh";
             }
    默认是显示第一个值,如何做到默认是没有选择值的并且能够保存 comboBox2.SelectedIndex = -1;提示有null不能够保存