title: How to retrieve values from the last row in a DataTable?
body: <p>I am having problems retrieving values from the last inserted row in a Data-table. I have a login form and the values will be inserted in the  table has the ID (int,an auto incremented value), userID (int), logintime (smalldatetime) and logouttime(smalldatetime). The code which is used to inside the login button,it thus inserts all values except the log out time</p>
  
  <pre><code>DateTime t1 = DateTime.Now;
  objbal2.insertLoginTime(s, t1);
  </code></pre>
  
  <p>and in the log out button I am updating the table, so I have to retrieve the last row values. I am updating the table with reference to the ID value and userID.
  Can I use this query get the values? But I can't figure out how?</p>
  
  <pre><code>SELECT COLUMN FROM TABLE ORDER BY COLUMN DESC
  </code></pre>
  
  <p>Thanks in advance</p>