Hi dharmendr,
Thank you for your code. It make sense but there's few things I'd like to point out.
On your screenshot Label1.Text dsplays result of each row clicked but what i expect is when update button is clicked Label1.Text should display the result of all rows(check if all rows in column Last Name is having 1). If it's having 1 Label1.Text = "Good" Else Label1.Text = "Bad"
Regards