Guys, i have a question.

Is it possible for datagridview to be use for a time-in, time-out program?

well how are you going to use that?

Cuz i even used a print method from the results of a datagridview, and print its content

I know u can use the datagrids in some ways, but depends on how u manipulate the information

Edited 5 Years Ago by CrankyMero: n/a

how to put the time in the specified column?

i tried this and it didn't work out.


        dbProvider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;"
        dbSource = "Data Source=|DataDirectory|\MuscleWorxGym1.mdb"

        con.ConnectionString = dbProvider & dbSource

        sql = "SELECT LastName, FirstName, TimeSessionIn, TimeOut FROM SessionMembers WHERE TimeOut = '" & Me.Text & "'"
        da = New OleDbDataAdapter(sql, con)
        da.Fill(ds, "MuscleWorxGym1")

        maxrows = ds.Tables("MuscleWorxGym1").Rows.Count
        inc = -1

Uhm, i have this last problem, every time i select a row, and log out one personnel, all the members are logged out.

How to log out specified personnel?

If this is for a ListView, see if this helps.

With ListView1
            If Not .SelectedItems.Count = 0 Then '// check if item is selected.
                .SelectedItems(0).SubItems(1).Text = "Logged Out" '// change .Text of .SubItem.
                '// .SubItems(1) = column 2, .SubItems(2) = column 3, etc..
                MsgBox("Please select a ""specified personnel"" to log out.", MsgBoxStyle.Information)
            End If
        End With
This question has already been answered. Start a new discussion instead.