How to add actual record number and total record number


Author
Message
Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)
Group: Forum Members
Posts: 144, Visits: 227
Hi

I have a maintenance form, I want to show the number of the actual record and the total number of records, I have this:

Private Sub BO_Publicaciones_Navigated(ByVal e As MicroFour.StrataFrame.Business.NavigatedEventArgs) Handles BO_Publicaciones.Navigated

'-- Establish Locals

Dim lcMsg As String

lcMsg = Me.BO_Publicaciones.CurrentRowIndex.ToString() & " 0f " & Me.BO_Publicaciones.Count.ToString()

Me.LabelControlNumberOfrecords.Text = lcMsg

End Sub

This works for the total number, but the first record is 0 and if I have 17 records navigating goes 0, 1,2...16 I know that the count is correct but I need to star in 1 not in 0.

Thanks for your help

Regards



Smile Everything is possible, just keep trying...
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search