extracted cursor from gridview