Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果表格行为空,我的文本框中显示的这个空格“”有问题。所以我想用这个“ ”替换这个“ ”。例如,这是我所拥有的:
StartTime.Text = row.Cells[5].Text;
所以这是我想要实现的伪代码:
if (StartTime.Text == "" " then replace it with " ") else show the value of StartTime.Text
我知道我的 C# 技能太差了,所以请帮忙。谢谢
关于什么StartTime.Text = row.Cells[5].Text.Replace(" ", " ")
StartTime.Text = row.Cells[5].Text.Replace(" ", " ")
或者我没有正确理解这个问题