This video will help you to get values from the DataGridView which is already retrieved from the database and also help you to calculate the total number of present and absent.
------------------------------------------------------------------------------------
Use Case :
DataGridView provides a powerful and flexible way to display data in a tabular format. DataGridView to show read-only views of a small amount of data and also to show editable views of very large sets of data.
DataGridView1.RowCount helps us to know to total number of rows in the DataGridView
DataGridView1.Rows(index).Cells(2).Value -- will get the Status Column value of (Present/Absent)
After increment the value of "present" and "absent" in the "for loop" will be able to display in the TextBox.
------------------------------------------------------------------------------------
Download the Source Code :
https://github.com/MakeItSimple6/calc...