Here I have created sample that full-fill your requirement.
HTML
<div>
<asp:FormView ID="FormView1" runat="server" OnPageIndexChanging="OnPageIndexChanging"
AllowPaging="true">
<HeaderTemplate>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<th>
Customer Id
</th>
<th>
Name
</th>
<th>
Country
</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<%#Eval("CustomerId")%>
</td>
<td>
<%#Eval("Name")%>
</td>
<td>
<%#Eval("Country")%>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:FormView>
</div>
Namespaces
Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration
Code
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
If Not Me.IsPostBack Then
Me.BindFormView()
End If
End Sub
Private Sub BindFormView()
Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
Using con As New SqlConnection(constr)
Using cmd As New SqlCommand("SELECT CustomerId, Name, Country FROM Customers")
Using sda As New SqlDataAdapter()
cmd.Connection = con
sda.SelectCommand = cmd
Using dt As New DataTable()
sda.Fill(dt)
FormView1.DataSource = dt
FormView1.DataBind()
End Using
End Using
End Using
End Using
End Sub
Protected Sub OnPageIndexChanging(sender As Object, e As FormViewPageEventArgs)
FormView1.PageIndex = e.NewPageIndex
Me.BindFormView()
End Sub
Screenshot
