The error is probably in this line:
bool isChecked = ((CheckBox)grdscore.Rows[i].FindControl("chkSelect")).Checked;
Have you checked to see if it is actually finding the checkbox?
Are you using Web Forms? Master pages?
Also, please don't concatenate strings to send to a database:
"select score from tbl_Score where DataSourceId='" + ddldatasource.SelectedItem.Value
Use parameterized queries. They aren't much more difficult and will save you from SQL Injection attacks.