在网格视图中存储值
问题描述:
大家好,
我有网格视图,一列填充有1英寸和0英寸.
我需要存储值的值,以便我有"present"和"absent"而不是1和0.
可以这样存储吗?
请问有人可以帮我吗?
在此先感谢
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
答
在此处查看 [ ^ ]以获得常规编辑帮助.
但通常,您可以设置另一个表,其中1 =当前和0 =不存在.
或在代码后面使用条件...
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...
public bool GetPresent(int i)
{
if(conditiontrue)
return true;
else
return false;