try to write a custom style, seehttp://www.codeproject.com/csharp/Apply_DataGridTableStyle.asphttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchformattingwindowsformsdatagridvisualbasicprimer.asp

解决方案 »

  1.   

    DataGrid中的列样式中有个Format可以做到的
      

  2.   

    this.dataGridTextBoxColumn7.Format = "F2";
      

  3.   

    this.dataGridTextBoxColumn7.Format = "F2";
      

  4.   

    用上面的方法还是不能很好地解决。我的问题在用的我们公司自定义的EnGridBoundColumn(从GridBoundColumn继承而来), 而不是直接的一个datagrid的column,所以里面没有Format。