Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A tutorial on the method of automatic line wrapping in ASP.NET Datagridview

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report