I have these fields on Customer DataTable
: ID,title,Name,Addrs,email,Fax and this code to bind the DataGridView
:
Dim sql As String = "SELECT * FROM Customers"
Dim daHeader As New SqlDataAdapter(sql, Conn)
daHeader.Fill(dsNota, "Customers")
dgvHeader.DataSource = dsNota.Tables("Customers")
How do I view title,name,addrs data in DataGridView
without changing the SQL string to:
"SELECT title,Name,Addrs FROM Customer"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…