I'm trying to allow users to resize columns of my datagridview, but it's not working.

I have this line

Code:
DataGridView1.AllowUserToResizeColumns = True

I want users to be able to resize columns the same way they would if in excel. Has anyone had any luck with this?

Thanks