Disabling resize on row selected column in DataGridView

  • Thread starter Thread starter Sean Connolly
  • Start date Start date
S

Sean Connolly

Guest
Hi,

In my application, I have managed to disable resizing of my data columns on my DataGridView, but the only column that I cannot disable the resize feature is on the row select column, you know, the one which shows which row is currently selected (also shows the little pencil when the line is being edited).

Can someone help me identify how to disable this please? Im using VS2005 pro and C#.

Im doing this programmatically because my program uses many different databases. I currently do things like:

this.myDataGridView.Columns["LineIndex"].width = 100;
this.myDataGridView.Columns["LineIndex"].Resizable = DataGridViewTriState.False;

Can I do the same sort of thing to fix the width of the row selection column? I dont want to hide it, just stop the resizing of this column!

Thanks

Sean

Continue reading...
 
Back
Top