<?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 Move row in attribute table up or down in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/move-row-in-attribute-table-up-or-down/m-p/867670#M5025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a button for the right click context menu of an attribute table. When the user right clicks on a row and selects the button, I would like the row they right clicked on to be moved up or down. I cannot find anything in the api that performs this functionality. I considered just deleting the selected row and recreating it at the desired position in the table but I cannot even find a method that inserts a row into the table at a specified index. It appears that any&amp;nbsp;new row created is added to the end of the table. &lt;A href="https://community.esri.com/migrated-users/86730"&gt;Uma Harano&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/10927"&gt;Wolfgang Kaiser&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Sep 2020 19:00:26 GMT</pubDate>
    <dc:creator>MarvisKisakye1</dc:creator>
    <dc:date>2020-09-07T19:00:26Z</dc:date>
    <item>
      <title>Move row in attribute table up or down</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/move-row-in-attribute-table-up-or-down/m-p/867670#M5025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a button for the right click context menu of an attribute table. When the user right clicks on a row and selects the button, I would like the row they right clicked on to be moved up or down. I cannot find anything in the api that performs this functionality. I considered just deleting the selected row and recreating it at the desired position in the table but I cannot even find a method that inserts a row into the table at a specified index. It appears that any&amp;nbsp;new row created is added to the end of the table. &lt;A href="https://community.esri.com/migrated-users/86730"&gt;Uma Harano&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/10927"&gt;Wolfgang Kaiser&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2020 19:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/move-row-in-attribute-table-up-or-down/m-p/867670#M5025</guid>
      <dc:creator>MarvisKisakye1</dc:creator>
      <dc:date>2020-09-07T19:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Move row in attribute table up or down</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/move-row-in-attribute-table-up-or-down/m-p/867671#M5026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rows in database tables are inherently unordered. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you view a table, you can order the rows&amp;nbsp;based on the value of a particular field. &amp;nbsp;One way to implement your up/down arrow idea would be to create an "Order" field on the table and fill it in. &amp;nbsp;Then the up and down buttons would edit the rows to swap their Order values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether you should do this is another matter, since this could mean a lot of database edits. Why are you trying to order the rows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2020 15:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/move-row-in-attribute-table-up-or-down/m-p/867671#M5026</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-09-08T15:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Move row in attribute table up or down</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/move-row-in-attribute-table-up-or-down/m-p/867672#M5027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/44320"&gt;Rich Ruh&lt;/A&gt; The&amp;nbsp;user is tasked with arranging rows (by moving them up or down) in an order that matches what they see on a structural engineering plan. We would them have code that populates a field based on the order that the user has set up and assign new relevant other data based on that order. The idea is to ease data&amp;nbsp;creation and ensure accuracy since all they have to do is arrange the rows in the same order as they see on the sheet..&lt;/P&gt;&lt;P&gt;If there are no other options I guess I could use the idea you provided; to&amp;nbsp;use the up or down commands to populate an order field and continuously sort it&amp;nbsp;accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2020 17:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/move-row-in-attribute-table-up-or-down/m-p/867672#M5027</guid>
      <dc:creator>MarvisKisakye1</dc:creator>
      <dc:date>2020-09-08T17:47:50Z</dc:date>
    </item>
  </channel>
</rss>

