Hello, I had programmed a button to call a database access as follows:
Principal
Code:
Private Sub VerTablaToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles VerTablaToolStripMenuItem.Click
Code:
Dim cnn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source= data\Frg.accdb;Persist Security Info=False")
Dim da As New OleDbDataAdapter("SELECT * FROM Tabla1 ", cnn)
Dim ds As New DataSet
da.Fill(ds)
DataGridView1.DataSource = ds.Tables(0)
DataGridView1.ScrollBars = ScrollBars.Both ' example but not working
Now I understand that the code shows the database to datagridview1, but it turns out that in columns I have an approximate of 9 columns, now when I run the program it shows some horizontal data that are 5 that I can see on the screen and Worst of all is that I do not see the scrollbar or scrollbar,
under the previous code I had placed this
preview access

preview VB.NET