Dim DA As SqlDataAdapter = New SqlDataAdapter DA.SelectCommand = New SqlCommand("Select FAAMOB from FAAM " , connection) Dim datatable As New DataTable DA.Fill(datatable) DataGridView1.AutoGenerateColumns = False DataGridView1.DataSource = datatable For Each row As DataGridViewRow In DataGridView1.Rows DataGridView1.Columns(0).DataPropertyName = "FAAMOB" Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)