I'll tell you in a nutshell
you are executing a stored procedure on the SQL Server by passing in 2 parameters and displaying the results in a DataGridView.
If you want to know it line by line I would suggest that you either Google each command that you want to know more about. Why? As you will learn more that way!
Here is the first one for you
SqlCommand[
^]