Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Disabling resize on row selected column in DataGridView

$
0
0

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? I'm using VS2005 pro and C#.

I'm 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 don't want to hide it, just stop the resizing of this column!

Thanks

Sean


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>