Amila,
I follow your code and test on our HowDoI sample, it works properly, please look at my code and screen-shot
private void TrackAndEditShapes_Load(object sender, EventArgs e)
{
_winformsMap.MapUnit = GeographyUnit.DecimalDegree;
_winformsMap.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
_winformsMap.CurrentExtent = new RectangleShape(-139.2, 92.4, 120.9, -93.2);
GeoFont font = new GeoFont("Arial", 8);
GeoSolidBrush brush = new GeoSolidBrush(GeoColor.SimpleColors.Black);
TextStyle nameTextStyle = new TextStyle("NAME", font, brush);
FeatureSourceColumn labelColumn = new FeatureSourceColumn("NAME", "string", 10);
_winformsMap.TrackOverlay.TrackShapeLayer.Open();
_winformsMap.TrackOverlay.TrackShapeLayer.Columns.Add(labelColumn);
_winformsMap.TrackOverlay.TrackShapeLayer.Close();
_winformsMap.TrackOverlay.TrackShapeLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = nameTextStyle;
_winformsMap.TrackOverlay.TrackEnded += new EventHandler<TrackEndedTrackInteractiveOverlayEventArgs>(TrackOverlay_TrackEnded);
_winformsMap.Refresh();
}
void TrackOverlay_TrackEnded(object sender, TrackEndedTrackInteractiveOverlayEventArgs e)
{
int lastIndex = _winformsMap.TrackOverlay.TrackShapeLayer.InternalFeatures.Count-1;
_winformsMap.TrackOverlay.TrackShapeLayer.InternalFeatures[lastIndex].ColumnValues.Add("NAME", Guid.NewGuid().ToString());
}
Thanks
James