HighTechTalks DotNet Forums  

transforming the database

ASP.net Data Grid Control microsoft.public.dotnet.framework.aspnet.datagridcontrol


Discuss transforming the database in the ASP.net Data Grid Control forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jules
 
Posts: n/a

Default transforming the database - 09-12-2006 , 09:53 PM






hi there

in my database i have a field sex with value (m, f).

when i display data in the grid i would like to display Masculin for M and
Feminin for F how to i go about it.

i do not want to change my database.

help plz



Reply With Quote
  #2  
Old   
Eliyahu Goldin
 
Posts: n/a

Default Re: transforming the database - 09-13-2006 , 05:02 AM






One of the ways of doing this is to handle ItemDataBound event. In the event
you get access to every item (row) after it got values from the database.
You will need to locate the cell with the field you want to change, and
replace it's text with whatever you want.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]


"Jules" <thescholars (AT) gmail (DOT) com> wrote

Quote:
hi there

in my database i have a field sex with value (m, f).

when i display data in the grid i would like to display Masculin for M and
Feminin for F how to i go about it.

i do not want to change my database.

help plz





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.