是标准的html 空格表示
单纯的 是对于文本框 状态的空格.

解决方案 »

  1.   

     是标准的html 空格表示
      

  2.   

    那试试 this.TextBox5.Text = HttpUtility.HtmlDecode(row.Cells[4].Text.Trim());
      

  3.   

     是标准的html 空格表示
      

  4.   

     在html中解释为空格,  但是在c#语言里解释为字符串
      

  5.   

    在<pre>标签里, " "这样的空格也是可以的.
      

  6.   

    写个函数
    this.TextBox5.Text = NoHTML(row.Cells[4].Text.Trim());       /// <summary>      
            /// 使用正则表达式删除用户输入中的html,和script内容      
            /// </summary>      
            /// <param name="Htmlstring">输入内容</param>      
            /// <returns>清理后的文本</returns>      
            public static string NoHTML(string Htmlstring)      
            {      
                //删除脚本      
                Htmlstring = Regex.Replace(Htmlstring, @"<script[^>]*?>.*?</" + "script>", "", RegexOptions.IgnoreCase);      
                //删除HTML      
                Htmlstring = Regex.Replace(Htmlstring, @"<(.[^>]*)>", "", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"([\r\n])[\s]+", "", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"-->", "", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"<!--.*", "", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"&(quot|#34);", "\"", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"&(amp|#38);", "&", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"&(lt|#60);", "<", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"&(gt|#62);", ">", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"&(nbsp|#160);", " ", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"&(iexcl|#161);", "\xa1", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"&(cent|#162);", "\xa2", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"&(pound|#163);", "\xa3", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"&(copy|#169);", "\xa9", RegexOptions.IgnoreCase);      
                Htmlstring = Regex.Replace(Htmlstring, @"&#(\d+);", "", RegexOptions.IgnoreCase);      
          
                Htmlstring = Htmlstring.Replace("<", "&lt;");      
                Htmlstring = Htmlstring.Replace(">", "&gt;");      
                Htmlstring = Htmlstring.Replace("\r\n", "");      
                Htmlstring = Htmlstring;      
          
                return Htmlstring;      
            }    
      

  7.   

    row.Cells[4].Text.Repalce("&nbsp;", "").Trim();