0

How can I add rows to this helper:

 @Html.TextAreaFor(x => Model.xxx[i].xxx,  htmlAttributes:  new { @class = "form-control" })

It seems like the default is 2 rows, I would like to add to it.

David
  • 15,894
  • 22
  • 55
  • 66
user2915962
  • 2,691
  • 8
  • 33
  • 60

1 Answers1

6

Use rows attribute

new { @class = "form-control", rows = "10" } 

Change 10 with the number of rows you want

Selman Genç
  • 100,147
  • 13
  • 119
  • 184