首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

怎么转换&nbsp

2012-02-14 
如何转换 this.water_star.Text GridView1.SelectedRow.Cells[2].Text我做了个点击GridView1中行就 赋

如何转换 
this.water_star.Text = GridView1.SelectedRow.Cells[2].Text;
我做了个点击GridView1中行就 赋值给this.water_star.Text
但当GridView1.SelectedRow.Cells[2].Text从数据库中得到为空时
this.water_star.Text赋值变为“ ”,我想得到空值

[解决办法]
this.water_star.Text=GridView1.SelectedRow.Cells[2].Text.Replace(" ","")
[解决办法]
或者用判断做

热点排行