In a datagridview, the left most column is just a blank column, and it can’t be accessed using dgv.Columns[columnNumber]. To get its with, what I’m doing is taking the width of the entire datagridview, and subtracting the width of each real column. There is a problem when there is a vertical scroll bar, so I have code that accounts for this if there is one.
I feel like I’m going through too much trouble to find this value and was wondering if there is a better way.
Thanks.
Try this: