TAN WhoAMI

TAN WhoAMI

  • 0
  • 291
  • 0

Fix the width of each column in View

Mar 12 2013 8:32 AM
using ASP.NET MVC 4 template, we have those Index.cshtml, Edit.cshtml, etc...
In Index, I am able to display those data in its rows and columns. However, say, when user go to Edit and do some changes, say type in the Description field which is much longer than the width of the Description column width. Then this long Description will appear as a single line of the long text, which is not what I want.

I want the width of each column fixed, such that when it reaches the end of the column, then it will just go to the second line in that column field. Is that possible?

What are the changes in code I need to do to achieve this?

I would appreciate some code sample to start with.

thanks.