A tutorial on the method of automatic line wrapping in ASP.NET Datagridview
This article introduces the relevant knowledge of "ASP.NET Datagridview automatic line wrapping method tutorial". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The copy code is as follows:
Protected void AxGridView1_RowDataBound (object sender, GridViewRowEventArgs e)
{
/ / sets that line wrapping is not allowed for all columns
/ / AxGridView1.Attributes.Add ("style", "word-break:keep-all;word-wrap:false")
/ / set all columns to wrap automatically
AxGridView1.Attributes.Add ("style", "word-break:break-all;word-wrap:break-word")
}
This is the end of the course on the method of line wrapping in ASP.NET Datagridview. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!