If you DataTable is bound to your DataGridView then the data in each is the same, correct? So then the number of rows in the DataTable with a particular value in a particular column is going to be the same as the number of rows in the DataGridView with that same particular value in the corresponding column. Isn't that the point of data-binding: the data in the control and the source beahve as one?