Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's Wrong With This Code?
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
What's Wrong With This Code?
Miscellaneous
Thread ID:
01386784
Message ID:
01386784
Views:
105
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
Next
Reply
Map
View

Click here to load this message in the networking platform