private void CustomColumnDisplayText(object sender, CustomColumnDisplayTextEventArgs e) { if (_attributesCache.ContainsKey(e.Column.FieldName)) { foreach (CustomAttribute a in _attributesCache[e.Column.FieldName]) { a.applyGetFieldDisplayText(this, e); } } // eventual override GetFieldDisplayText(sender, e); }
protected override void GetFieldDisplayText(object sender, xwcs.core.db.binding.CustomColumnDisplayTextEventArgs e) { try { FilterObjectbase fo = this[e.ListSourceRowIndex] as FilterObjectbase; if (fo != null) { ICriteriaTreeNode cn = fo.GetFilterFieldByPath(e.Column.FieldName); if (cn.HasCriteria()) { string cond = cn.GetCondition().LegacyToString(); e.DisplayText = cond; } } } #if DEBUG_TRACE_LOG_ON catch (Exception ex) { SLogManager.getInstance().getClassLogger(GetType()).Debug(ex.ToString()); #else catch (Exception) { #endif } //just silently skip problems }
protected virtual void GetFieldDisplayText(object sender, CustomColumnDisplayTextEventArgs e) { //just to be overloaded if necessary }