data binding

Results 1 to 2 of 2

Thread: data binding

  1. #1
    Join Date
    Dec 1969

    Default data binding

    Hi guys this, i think is a simply que. I&#039;ve got two SQL queries;<BR>currently strSQL1 is binded to my datagrid. How do I go about binding strSQL2 to the grid also? thanks.<BR><BR>...<BR>Const strSQL1 As String = "SELECT * from table1"<BR>Const strSQL2 As String = "SELECT * from table2"<BR><BR> Dim objCmd As New SqlCommand(strSQL, objConn)<BR><BR> &#039;create/Populate the DataReader<BR> Dim objDR As SqlDataReader<BR> objDR = objCmd.ExecuteReader()<BR><BR> resp_budgets.DataSource = objDR<BR> resp_budgets.DataBind()

  2. #2

    Default RE: data binding

    It depends, you should explain clearly what you want to accomplish.<BR>It might just be:<BR>Const strSQL As String = "SELECT * from table1 UNION SELECT * from table2"<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts