title: display columns from different tables during data bind
body: <p>How to bind data from two tables.</p>
  
  <p>tbl_user
  first name userid</p>
  
  <p>tbl_usermessage
  userid  timereceived msgid</p>
  
  <p>How to display username and timereceived in datagrid</p>
  
  <pre><code>SELECT TimeReceived, FirstName FROM tbl_usermessage INNER JOIN tbl_user on tbl_usermessage.tbl_user_UserID = tbl_user.UserID WHERE tbl_message_MsgID = @Value1";
  </code></pre>
  
  <p>This is what I am trying i am getting syntax error.  here Time received is from  tbl_usermessage and firstname is from tbl_User and both table has userid</p>