private void grdVwEx2_CustomDrawFooter(object sender, DevExpress.XtraGrid.Views.Base.RowObjectCustomDrawEventArgs e) { //LinearGradientBrush backBrush = new LinearGradientBrush(e.Bounds, Color.Orange, Color.PeachPuff, LinearGradientMode.Vertical); //e.Graphics.FillRectangle(backBrush, e.Bounds); //ControlPaint.DrawBorder3D(e.Graphics, e.Bounds, Border3DStyle.SunkenInner); //e.Graphics.DrawString("aaaaaaa", e.Appearance.Font, new SolidBrush(Color.Blue), e.Bounds, e.Appearance.GetStringFormat()); //e.Handled = true; }
private void EventGroup(object sender, DevExpress.XtraGrid.Views.Base.RowObjectCustomDrawEventArgs e) { GridView view = sender as GridView; GridGroupRowInfo info = e.Info as GridGroupRowInfo; string caption = info.Column.Caption; if (info.Column.Caption == string.Empty) { caption = info.Column.ToString(); } info.GroupText = string.Format("{0} : {1} (count= {2})", caption, info.GroupValueText, view.GetChildRowCount(e.RowHandle)); }
private void gridView1_CustomDrawGroupRow(object sender, DevExpress.XtraGrid.Views.Base.RowObjectCustomDrawEventArgs e) { GridView view = sender as GridView; ArrayList items = ExtractSummaryItems(view); if (items.Count == 0) { return; } DrawBackground(e, view); DrawSummaryValues(e, view, items); e.Handled = true; }