熟悉ASP.NET的GRIDVIEW控件的进
txtBox.Text = GridHead.SelectedRow.Cells[1].Text; 我这样写的话GridHead.SelectedRow.Cells[1].Text;没有值的话,就会自动得出 ,我想他的值为空,他就得出空,不想要 这怎么解决啊?
------解决方案--------------------GridHead.SelectedRow.Cells[1].Text.Replace( "  ", " ");
------解决方案--------------------GridHead.SelectedRow.Cells[1].Text.Replace( "  ", " ");