如何让Developer Express的表头显示中文标题阿?谢谢了

解决方案 »

  1.   

    如果你是直接绑定,通过代码来设置标题:foreach (DevExpress.XtraGrid.Columns.GridColumn gc in gridView1.Columns)
                {   
                    
                    // 
                    switch (gc.FieldName.Trim())
                    {
                        case "Transporter_ID":
                            gc.Caption = "编号";
                            gc.Fixed = DevExpress.XtraGrid.Columns.FixedStyle.Left;
                            break;
                                           case "Transporter_Name_2":
                            gc.Caption = "公司简称";
                            break;
                                       }            }