DataGrid Help As Well
I have a datagrid, Now How Do I get the paging to work I'm reading it in from a database, I've set the default property on the paging, But no numbers or buttons will show up to change pages, ANy Help Here's what I have to show you what kind of code i've implemented
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim conn As New SqlConnection(ConfigurationSettings.AppSettings("strDBConn"))
Try
conn.Open()
Dim cmd As New SqlCommand("tenrows", conn)
ddpairs.DataSource = cmd.ExecuteReader()
ddpairs.DataBind()
Catch ex As Exception
lblerr.Text = ex.Message
End Try
conn.Close()
End Sub
Private Sub btnnext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub NavigationButtonClicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnprevious.Click
End Sub
Private Sub ddpairs_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles ddpairs.PageIndexChanged
ddpairs.CurrentPageIndex = e.NewPageIndex
ddpairs.DataBind()
End Sub
Private Sub btnback_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub ddpairs_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ddpairs.SelectedIndexChanged
End Sub
Private Sub tblpairs_DataBinding(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub tblpairs_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
End Class