如果表格行为空,我在我的文本框中显示此空格""的问题.所以我想用这个" "替换这个" ".例如,这是我所拥有的:
StartTime.Text = row.Cells[5].Text;
Run Code Online (Sandbox Code Playgroud)
所以这里是我想要实现的伪代码:
if (StartTime.Text == "" " then replace it with " ")
else show the value of StartTime.Text
Run Code Online (Sandbox Code Playgroud)
我知道我的C#技能太差了所以请帮忙.谢谢
| 归档时间: |
|
| 查看次数: |
10933 次 |
| 最近记录: |