Private Sub RecLocation() me.lblLocation.text = ((Me.BindingContext (objDsCompany, "Worker").Position +1).ToString + " of ") _ + Ne.BindingContext(objDsCompany, "Workers").Count.ToString) RecLocation End Sub Private Sub btnFirst_Click(ByVal sender As System.Object, ByVal e .....) Me.BindingContext(objDsCompany, "Worker").Position =0 RecLocation End Sub Private Sub btnLast_Click(ByVal sender As System.Object, ByVal e .....) Me.BindingContext(objDsCompany, "Worker").Position = (Me.objDSCompany.Tables("Worker").Rows.Count -1) RecLocation() End Sub Private Sub btnNext_Click(ByVal sender As System.Object, ByVal e .....) Me.BindingContext(objDsCompany, "Worker").Position =Me.BindingContext (objDsCompany, "Worker").Position +1) RecLocation() End Sub Private Sub btnPrev_Click(ByVal sender As System.Object, ByVal e .....) Me.BindingContext(objDsCompany, "Worker").Position = Me.BindingContext(objDsCompany, "Worker").Position -1) RecLocation End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)