在gridview中,选择CustomDrawGroupRow事件,就可以编辑自已想要的分组头了。 private void gridView1_CustomDrawGroupRow(object sender, DevExpress.XtraGrid.Views.Base.RowObjectCustomDrawEventArgs e) { GridGroupRowInfo GridGroupRowInfo = e.Info as GridGroupRowInfo; string text = GridGroupRowInfo.GroupText; string[] str = text.Split(new char[] { ':' }); for (int i = 0; i < str.Length; i++) { if (str[i] == string.Empty) { GridGroupRowInfo.GroupText = "未装箱:"; break; } } }