Live Chat Icon For mobile
Live Chat Icon

Why does the DataGrid web server control contents wrap when ItemStyle Wrap or HeaderStyle Wrap Property is set to False

Platform: ASP.NET| Category: DataGrid

The wrap functionality occurs for each cell and not for each row of the DataGrid. Therefore, if you disabled the wrap functionality for all of the DataGrid, text wrapping functionality is not disabled for every row or column.

To resolve this make sure that every column of the DataGrid has the ItemStyle Wrap property explicitly set to False as follows:

<ItemStyle Wrap='False'></ItemStyle>

For more details refer

  • Microsoft Knowledge Base Article – 323169
  • Microsoft Knowledge Base Article – 324165

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.