public string FindLabel(ESRI.ArcGIS.Geodatabase.IFeature feature, ILayerFields layerFields) { string label = ""; if (feature != null && layerFields != null) { int propIdIndex = layerFields.FindField("myfield"); if (propIdIndex >= 0) { var value = feature.get_Value(propIdIndex); int propId; if (value != null && int.TryParse(value.ToString(), out propId) && propId > 0) { label = "test " + propId.ToString(); } } } return label; }Solved! Go to Solution.