Dim constr As String = Nothing Dim cn As New SqlConnection cn.ConnectionString = "Data Source=BASURAJ-PC;Initial Catalog=Raj;User ID=sa;Password=*******" Dim Query As String Query = "Select * from stud " Dim cmd As New SqlCommand(Query, cn) cmd.CommandType = CommandType.Text Dim sda As New SqlDataAdapter(cmd) Dim dt As New DataTable sda.Fill(dt) DataGrid1.ItemsSource = dt.AsDataView
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)