<?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 Dialog table control This.SelRow returns wrong value when Table.Rows.Count = 1 in DIAdem</title>
    <link>https://ni.lithium.com/t5/DIAdem/Dialog-table-control-This-SelRow-returns-wrong-value-when-Table/m-p/4199347#M29068</link>
    <description>&lt;P&gt;I am using DIAdem 2021.&amp;nbsp; I have a dialog with a table control named 'Table1'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the table has more than one row (Table1.Rows.Count = 2), then event&amp;nbsp;Table1_OnSelChange(This) returns This.SelRow = 0 when a column is selected, and This.SelRow = (row #) when a cell is selected.&amp;nbsp; This is the correct behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the table has one row (Table1.Rows.Count = 1), then event&amp;nbsp;Table1_OnSelChange(This) returns This.SelRow = 1 when a column is selected, and This.SelRow = 1 when a data cell in row #1 is selected.&amp;nbsp; This is incorrect.&amp;nbsp; This.SelRow = 0 is what is expected when an entire table column is selected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because of this issue, it is impossible to differentiate when a user selects and entire column, or just a data cell row #1 when Table1.Rows.Count = 1.&amp;nbsp; Note also that&amp;nbsp;This.SelectedCells.Count doesn't help to differentiate the two conditions either.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Dec 2021 18:53:11 GMT</pubDate>
    <dc:creator>markwkiehl</dc:creator>
    <dc:date>2021-12-17T18:53:11Z</dc:date>
    <item>
      <title>Dialog table control This.SelRow returns wrong value when Table.Rows.Count = 1</title>
      <link>https://ni.lithium.com/t5/DIAdem/Dialog-table-control-This-SelRow-returns-wrong-value-when-Table/m-p/4199347#M29068</link>
      <description>&lt;P&gt;I am using DIAdem 2021.&amp;nbsp; I have a dialog with a table control named 'Table1'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the table has more than one row (Table1.Rows.Count = 2), then event&amp;nbsp;Table1_OnSelChange(This) returns This.SelRow = 0 when a column is selected, and This.SelRow = (row #) when a cell is selected.&amp;nbsp; This is the correct behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the table has one row (Table1.Rows.Count = 1), then event&amp;nbsp;Table1_OnSelChange(This) returns This.SelRow = 1 when a column is selected, and This.SelRow = 1 when a data cell in row #1 is selected.&amp;nbsp; This is incorrect.&amp;nbsp; This.SelRow = 0 is what is expected when an entire table column is selected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because of this issue, it is impossible to differentiate when a user selects and entire column, or just a data cell row #1 when Table1.Rows.Count = 1.&amp;nbsp; Note also that&amp;nbsp;This.SelectedCells.Count doesn't help to differentiate the two conditions either.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 18:53:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/DIAdem/Dialog-table-control-This-SelRow-returns-wrong-value-when-Table/m-p/4199347#M29068</guid>
      <dc:creator>markwkiehl</dc:creator>
      <dc:date>2021-12-17T18:53:11Z</dc:date>
    </item>
  </channel>
</rss>

