After binding a DataView to a DataGridView I tried to remove a Column with :
DataGridView1.Columns.Remove(“FieldToBeRemoved”)
Unfortunately this does not work, the field is still visible in the DataGridView..
Is this behaviour intended? And if so, is it possible to set the Columns in the ShowColumnVisibilityMenu programatically?
This would solve the problem.
Regards, Wim
Hi Frank,
Turn of AutoGenerateColumns does the trick 🙂 !
Thanks,
Regards,
Wim
Hi Wim,
I have tried this in a small sample but could not reproduce.
You can try
If both approaches won´t work for you please send us a small test case and we´ll check on our end.
Best regards
Frank
Please login first to submit.