arCombiend.xgridviewList.Columns["1 Wk"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Custom;
arCombiend.xgridviewList.Columns["1 Wk"].SummaryItem.DisplayFormat = iWk1HoursSum.ToString("f2") + " / " + iWk1DollarSum.ToString("f2");
-------------------------------------------------------------------------------------------------------------------------------
设置行的字体颜色
在GridControl中的Gridview的CustomDrawCell写如下代码
private void gridView1_CustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e) { if (e.RowHandle==1) { //字体颜色,也可改变背景颜色等属性 e.Appearance.ForeColor = Color.Red; } if (e.RowHandle==3) { //字体颜色,也可改变背景颜色等属性 e.Appearance.ForeColor = Color.Red; } }
(其他DX控件都有此类似方法来改变属性)