Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change value to be displayed in mmDataGridView
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01328179
Message ID:
01330405
Vues:
17
Maurizio,

I went back and figured out what I did to get something like that to work with a combo box and the same idea should work for your grid.
In the business object, you need to create a dataset that includes a field based on a function that returns Yes or No based on the value of the done field. Give that dataset a different tablename from the default table name. When you create your grid, for the column that needs to show the yes/no value, the binding source is still your business object but the DataPropertyName in the grid collection would be NewTableName.Done. I haven't tried it on a grid but I did get it to work on a combo so I think that same process should work for the grid. Good luck.


>Is there a way to change what has to be displayed in a column of mmdataGridView?
>
>Let me explain...
>
>I have a table field "done" that has values 1 or 0 bound to a column..
>I would like to display "YES" if value is 1 and "NO" if value is 0.
Linda Harmes
HiBit Technologies, Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform