here are my example cells
it should be like this one
here is my code for filling my data grid
con.Open()
Dim query As String = "select * from tbllogin"
Dim cmd As New SqlCommand(query, con)
Dim rd As SqlDataReader
rd = cmd.ExecuteReader
DGV.Columns.Clear()
DGV.Rows.Clear()
DGV.Columns.Add("col1", "UserName")
DGV.Columns.Add("col2", "Password")
While rd.Read
DGV.Rows.Add(rd("UserName").ToString, rd("Password").ToString)
End While
rd.Close()
con.Close()