How i can hide or remove a column in DGV???

i use this code :

DGVname.columns.remove(colindex)

but the column didnt remove it jsut became the last column

DataGridView1.Columns(1).Visible = False

Just substitute the appropriate zero-relative column number.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.