Example of AutoWrap Column Cells in ASP.NET MVC Data Grid Control
This sample demonstrates the Grid component with the auto wrap column cell. In this sample, you can see that the main fields of invention column cell content exceeded the available width hence it has been wrapped into multiple lines.
Inventor Name | No of Patent Families | Country | Active | Main fields of invention |
---|---|---|---|---|
Kia Silverbrook | 4737 | Australia | 1994-2016 | Printing, Digital paper, Internet, Electronics,Lab-on-a-chip, MEMS, Mechanical, VLSI |
Shunpei Yamazaki | 4677 | Japan | 1976-2016 | Thin film transistors, Liquid crystal displays, Solar cells, Flash memory, OLED |
Lowell L. Wood, Jr. | 1419 | USA | 1977-2016 | Mosquito laser, Nuclear weapons |
Paul Lapstun | 1281 | Australia | 2000-2016 | Printing, Digital paper, Internet, Electronics, CGI, VLSI |
Gurtej Sandhu | 1255 | India | 1991-2016 | Thin film processes and materials, VLSI, Semiconductor device fabrication |
Jun Koyama | 1240 | Japan | 1991-2016 | Thin film transistors, Liquid crystal displays, OLED |
Roderick A. Hyde | 1240 | USA | 2001-2016 | Various |
Leonard Forbes | 1093 | Canada | 1991-2016 | Semiconductor Memories, CCDs, Thin film processes and materials, VLSI |
Thomas Edison | 1084 | USA | 1847(b)-1931(d) | Electric power, Lighting, Batteries, Phonograph, Cement, Telegraphy, Mining |
Donald E. Weder | 999 | USA | 1976-2015 | Florist supplies |
George Albert Lyon | 993 | Canada | 1882(b)-1961(d) | Automotive, Stainless steel products |
John F. O'Connor | 949 | USA | 1864(b)-1938(d) | Railway draft gearing |
Auto wrap cell content can be enabled using AllowTextWrap
property of the Grid. Setting this property will wrap cell text on multiple lines. This feature is useful
to view the cell content when it exceeds the cell width.
Setting this property will wrap the text in both content cell and header cell.
In this demo, the AllowTextWrap
property is enabled and you can also see that the Main fields of invention column whose
content exceeded the cell width is wrapped into multiple lines.