For Programmers: Free Programming Magazines  


Home > Archive > C# > May 2005 > Change display value in a grid









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Change display value in a grid
Stefano Coluccia

2005-05-24, 3:59 pm

Hi,
I'm using compact framework for pocket Pc and I should change the
display values of a column in a grid, so I've a xml file where there is
a field where are saved the follow value 1,2,3 but I don't want to
transfrom it like:
switch (myRow["FIELD"])
{
case 1: DisplayValue = "First";
break;
case 2:DisplayValue = "Second";
break;
case 3:DisplayValue = "Third";
break;
}
so a run time I should see the description and not the value, How can I
do this?

Thanks
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com