Maybe its the datatype of cbgroup.SelectedValue? Try cbgroup.SelectedValue.ToString or CStr(cbgroup.SelectedValue)