Here is what i have:
Thanks for the help!vb.net Code:
Dim ColumnToSearch As Integer = 42 'number 42 is the column number as per dataset Dim StringToFind As String = "Duedate" 'DueDate is the string i want to be count Dim cnt As Integer = 0 Dim s As String For Each row As DataGridViewRow In ProjectDescriptionsDataGridView.Rows s = row.Cells(ColumnToSearch).Value If s.Contains(StringToFind) Then cnt += 1 Next TotalDueDateTextBox.Text = cnt 'i added this to get the value of the counter




Reply With Quote