Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric Formatting
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Numeric Formatting
Divers
Thread ID:
01296186
Message ID:
01296186
Vues:
69
With regular textboxes I'm using formatting with DataBindings.Add() and it's working very well.

With my own textbox columns in grids, I want to achieve the same simple and consistent formatting (i.e. C, D, G, F2, etc...).

What I am doing is using the EditingColumnFormattedValue get()/set() for this.

I know grid.Columns["mycolumn"].DefaultCellStyle.Format = "C" sets how it is displayed, but is it the equivalent to DataBindings.Add(), but for columns?

Is this the best place or is there a better place to intercept/control formatting for numbers in textboxes in grid columns (no maskedtextboxes please).

Thanks in advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform