kkonkle Posted October 1, 2008 Posted October 1, 2008 I tried to search these forums for this, but none of the results seemed to be what I need. I have a simple VB.Net form with the basic grid on it. It is not databound, I designed it at designtime and will fill it during runtime. The one last thing I want to do is remove the first column, the one that has the selected rown indicator in it. I do not see any property in the DataGridView control for this, and if I try to do it at runtime "clientGrid.columns(0).width = 0" then it resizes my first column, and not the selected row column. So does anyone know how I can resize this column to 0, or hide or remove the column entirely? Quote
JumpyNET Posted October 21, 2008 Posted October 21, 2008 Set RowHeadersVisible to false from the DataGridView's properties. Quote
kkonkle Posted October 21, 2008 Author Posted October 21, 2008 That was easy... I didn't know that's what the property "rowHeaders" meant, but now that I think about it that makes perfect sense. Thanks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.