title: Check if DataRow exists by column name in c#?
body: <p>I want to do something like this:</p>
  
  <pre><code>   private User PopulateUsersList(DataRow row)
          {
              Users user = new Users();
              user.Id = int.Parse(row["US_ID"].ToString());
              if (row["US_OTHERFRIEND"] != null)
              {
                  user.OtherFriend = row["US_OTHERFRIEND"].ToString();
              }
              return user;
          }
  </code></pre>
  
  <p>However, I get an error saying <code>US_OTHERFRIEND</code> does not belong to the table.
  I want to simply check if it is not null, then set the value.</p>
  
  <p>Isn't there a way to do this?</p>