ASP.NET 如何讓 GridView 強制使用指定之欄寬

於 rowdatabound 事件中加入

e.Row.Cells[1].Attributes.Add("style", "word-break:break-all;word-wrap:break-word;");

留言

熱門文章