Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147988 | Oct 1,2019 01:35 AM UTC | Oct 9,2019 06:50 AM UTC | WinForms | 8 |
![]() |
Tags: SfDataGrid |
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles button1.Click
Dim constr As String = "//Input your database connection string here"
Using con As New MySqlConnection(constr)
Using cmd As New MySqlCommand("GetStudentInfo", con)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.AddWithValue("@ids", 1)
Using sda As New MySqlDataAdapter(cmd)
Dim dt As New DataTable()
sda.Fill(dt)
sfDataGrid1.DataSource = dt
End Using
End Using
End Using
End Sub |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.