Click here to Skip to main content
15,908,834 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have grid view and one column is filled with 1's and 0's.
I need to store values the values so that instead of 1 and 0, I have "present" and "absent".

Is it possible to store like this?

Please can any one help me?

Thanks in advance
Posted
Updated 6-Dec-10 0:35am
v2
Comments
Dalek Dave 6-Dec-10 6:35am    
Edited for Grammar and Readability.
Sipder 6-Dec-10 6:44am    
This you need to handle by code. assuming that you are using Boolean data type at the back end then you need to replace 0 and 1 as Present and Absent through c#.Net.
tulasiram3975 6-Dec-10 7:16am    
can you give me a sample code or the process

1 solution

See Here[^] for general editing help.

But as a rule you can set up another table where 1=Present and 0=Absent.

Or use conditions in the code behind...
C#
public bool GetPresent(int i)
{
if(conditiontrue)
 return true;
else
 return false;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900