Hi, Thank you so much for your reply. I tried your coding but it can't work. "Label is a type and cannot be used as an expression" I have converted the button into a template field. I have placed the codings in the button click event: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Best Regards, Aaron