Quantcast
Channel: kkomzi
Viewing all articles
Browse latest Browse all 140

[Devexpresss] Grid Footer 영역 customizing 샘플

$
0
0
private void gvMain_CustomDrawFooterCell(object sender, FooterCellCustomDrawEventArgs e)
		{if(GridData == null)
			{return;
			}if(e.Column == colRepQtyName)
			{
				e.Info.DisplayText = _projectCumulativePlan;
				e.Info.Bounds = new Rectangle(e.Bounds.X, e.Bounds.Ythis.bandMain.Width, e.Bounds.Height);
				e.Info.Appearance.Options.UseTextOptions = true;
				e.Info.Appearance.TextOptions.HAlignment = HorzAlignment.Center;
				e.Painter.DrawObject(e.Info);
				e.Handled = true;
			}else
			{string fieldName = e.Column.FieldName;if(fieldName.StartsWith(CpjUtil.C_MonthColumnFieldNamePrefix))
				{string value = string.Format(e.Column.SummaryItem.DisplayFormat_sortedValueWithAccum[fieldName.Split('_')[1].CPJToDateTime()].AccumValue);
					e.Info.DisplayText = value;
					e.Painter.DrawObject(e.Info);
					e.Handled = true;
				}
			}
		}
저작자 표시비영리동일 조건 변경 허락

Viewing all articles
Browse latest Browse all 140

Trending Articles