Dim lyr As New ESRI.ArcGIS.Client.FeatureLayer lyr = CType(Mainpage.MyMap.Layers("MyFeatureLayer"), ESRI.ArcGIS.Client.FeatureLayer) For Each item As ESRI.ArcGIS.Client.Graphic In lyr.Graphics If item.Geometry Is Nothing Then item.Attributes.Add("HasShape", "False") Else item.Attributes.Add("HasShape", "True") End If Next Mainpage.MyDataGrid.GraphicsLayer = Mainpage.MyMap.Layers("MyFeatureLayer")
Dim col As New DataGridTextColumn col.Binding = New Windows.Data.Binding("HasShape") col.Header = "Has Shape" col.Width = New DataGridLength(80.0) col.IsReadOnly = True MyDataGrid.Columns.Add(col)
Solved! Go to Solution.
col.Binding = New Windows.Data.Binding("Attributes[HasShape]")
Please let me know if this is possible or maybe there's a better way to identify if there's a geometry.