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
Can i also put a timer on the datagridview column?
more like timestamps probably or datetimepicker
how to put the time in the specified column?
i tried this and it didn't work out.
Me.SessionMembersTableAdapter.Fill(Me.MuscleWorxGym1DataSet.SessionMembers)
dbProvider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;"
dbSource = "Data Source=|DataDirectory|\MuscleWorxGym1.mdb"
con.ConnectionString = dbProvider & dbSource
con.Open()
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
I personally would use a ListView for a "time-in, time-out program".
Ok, i'll try.
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..
Else
MsgBox("Please select a ""specified personnel"" to log out.", MsgBoxStyle.Information)
End If
End With
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.