Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to show part of a field in a Grid
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00993131
Message ID:
00993139
Vues:
14
Gerard,

I don't know if the mapping name property will allow an expression (I've never tried it). But you could add a column to your datatable that's based on an expression, like so:
DataColumn MyCol = new DataColumn("NewString", typeof(System.String));
MyCol.Expression = "Col1 + Col2 + Col3";
MyTable.Columns.Add(MyCol);
I'm actually curious now to see if there are other ways, but I believe at least that one should work.

Kevin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform