private void gridMain_CustomUnboundColumnData(object sender, DevExpress.Xpf.Grid.GridColumnDataEventArgs e) { if (e.Column.FieldName == "STT") { e.Value = gridMain.GetRowVisibleIndexByHandle(gridMain.GetRowHandleByListIndex(e.ListSourceRowIndex)) + 1; } }
private void grid_CustomUnboundColumnData(object sender, DevExpress.Xpf.Grid.GridColumnDataEventArgs e) { if (e.IsGetData) { int price = Convert.ToInt32(e.GetListSourceFieldValue("单价")); int unitsOnOrder = Convert.ToInt32(e.GetListSourceFieldValue("数量")); e.Value = price * unitsOnOrder; } }
private void grid_CustomUnboundColumnData(object sender, DevExpress.Xpf.Grid.GridColumnDataEventArgs e) { if (e.Column == null || !e.IsGetData) { return; } if (e.Column.FieldName == "AnimationElement") { e.Value = GetAnimationElement(e.ListSourceRowIndex); } }
/// <summary> /// 그리드 컬럼 Indicator 영역에 순번 표현 관련 이벤트 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void GridMaster_CustomUnboundColumnData(object sender, DevExpress.Xpf.Grid.GridColumnDataEventArgs e) { try { if (e.IsGetData == true) { e.Value = e.ListSourceRowIndex + 1; } } catch (Exception err) { this.BaseClass.Error(err); } }
private void CustomUnboundColumnData(object sender, DevExpress.Xpf.Grid.GridColumnDataEventArgs e) { //UnboundColumns.GetSnapShotErrorColumns(e); }
private void CustomUnboundColumnData(object sender, DevExpress.Xpf.Grid.GridColumnDataEventArgs e) { UnboundColumns.GetSnapShotErrorColumns(e); UnboundColumns.GetEnvironmentInstanceDatabaseColumns(e); }