<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change value of FeatureDataGrid Cell in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-value-of-featuredatagrid-cell/m-p/722601#M18539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can this be done if a feature (graphic) in the layer has more than one rows associated in the table? Something like an accident location on the map layer may have multiple accidents and I need to edit/add/delete data in accident table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Dec 2010 11:05:24 GMT</pubDate>
    <dc:creator>BingZhu</dc:creator>
    <dc:date>2010-12-21T11:05:24Z</dc:date>
    <item>
      <title>Change value of FeatureDataGrid Cell</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-value-of-featuredatagrid-cell/m-p/722599#M18537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a featurelayer that I'm editing with a FeatureDataGrid, but I want to change what one of the values says in a ReadOnlyColumn.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More specifically, I'm editing data in a feature class for streets.&amp;nbsp; Howevr, the name of the street is kept in a separate table and are joined when needed based on a value.&amp;nbsp; This value is the column that I'm trying to replace.&amp;nbsp; It shows up just fine in the FeatureDataGrid, but I want to show the name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that a FeatureService can't work with joined tables so I've had to be clever to get the associated names.&amp;nbsp;&amp;nbsp; Here's what my process is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Use Draw functions to select features in a dynamic layer on the map (using a MapService).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Query the MapService based on the geometry of the DrawGraphics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Resulting FeatureSet is used to get a collection of ObjectIDs which are then used to create a WHERE clause for the FeatureLayer. (I also get a unique collection of Name Values)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) FeatureLayer is updated, selected Streets appear on the map and their information in the FeatureDataGrid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) I use the collection of Name Values to get the full name of the Selected Streets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Here's my Problem#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6) I want to change the Text in the FeatureDataGrid to display Name of the Street instead of the NameValue.&amp;nbsp; I know that I can add extra columns that are not bound to the Street Information, so i don't have to actually change any values.&amp;nbsp; Let's say I add a TextColumn to the beginning of my Columns Collection, and it had placeholder text inside it.&amp;nbsp; How do I change the text to say "Main Street" for each item in my FeatureDataGrid that represents a portion of Main Street?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading_Row event has not been helpful to me, but I suppose I've just missed how to do it properly.&amp;nbsp; Any help or suggestions would be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 20:42:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-value-of-featuredatagrid-cell/m-p/722599#M18537</guid>
      <dc:creator>WilliamKimrey</dc:creator>
      <dc:date>2010-11-05T20:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change value of FeatureDataGrid Cell</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-value-of-featuredatagrid-cell/m-p/722600#M18538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have a related table you need to update, you can update it as you would any FeatureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example this FeatureService &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer&lt;/A&gt;&lt;SPAN&gt;. It includes a layer with Point geometry and a related table.&amp;nbsp; The layer's objectid and the table's sf_311_serviceoid field must match.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you can do is have two FeatureLayer, one for the layer (added to your map layers) and one for the table (not part of map).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The FeatureLayer for the layer can be updated using FeatureDataGrid. The FeatureLayer for the table can be updated using FeatureDataForm.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you select a graphic in the FeatureLayer for the layer or select a row in the FeatureDataGrid, you can update the Where property of the FeatureLayer for the table (i.e. sf_311_serviceoid field = 3973, where 3873 is the graphic.Attributes[layer.LayerInfo.ObjectIDField]).&amp;nbsp; Call Update() on this layer and in the UpdateCompleted event, set the FeatureDataForm's FeatureLayer and GraphicSource properties.&amp;nbsp; This should allow you to edit both layer and table simultaneously.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Nov 2010 01:59:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-value-of-featuredatagrid-cell/m-p/722600#M18538</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-06T01:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change value of FeatureDataGrid Cell</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-value-of-featuredatagrid-cell/m-p/722601#M18539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can this be done if a feature (graphic) in the layer has more than one rows associated in the table? Something like an accident location on the map layer may have multiple accidents and I need to edit/add/delete data in accident table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 11:05:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-value-of-featuredatagrid-cell/m-p/722601#M18539</guid>
      <dc:creator>BingZhu</dc:creator>
      <dc:date>2010-12-21T11:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change value of FeatureDataGrid Cell</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-value-of-featuredatagrid-cell/m-p/722602#M18540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure that should be possible too. You can create a RecordNavigator control that can navigate through the related records, you can update the FeatureDataForm's GraphicSource so that it may point to the correct record in your table.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 17:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-value-of-featuredatagrid-cell/m-p/722602#M18540</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-12-21T17:24:39Z</dc:date>
    </item>
  </channel>
</rss>

