在网格视图中存储值 [英] storing values in grid view
本文介绍了在网格视图中存储值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有网格视图,一列填充有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;
这篇关于在网格视图中存储值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文