I have a grid which displays a checkbook register. The total width of all the columns is less than the total width of the grid, so I want to resize the TransDesc column to fill it in:
int iColumnWidths = 0;
foreach (DataGridViewColumn oCol in grdRegister.Columns)
{
iColumnWidths = iColumnWidths + oCol.Width;
}
grdRegister.Columns["TransDesc"].Width = grdRegister.Width - iColumnWidths;
The TransDesc.Width value is negative.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people