Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's Wrong With This Code?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
What's Wrong With This Code?
Divers
Thread ID:
01386784
Message ID:
01386784
Vues:
104
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform