Assuming your model includes something like this:
public SelectList Countries { get; set; }
in the metadata for your class, and your controller populates the list, you can call DropDownList inside the webgrid:
myGrid.Column(header: "", format: @<text> @Html.DropDownList("Countries")</text>),
After finding the answer, this is obvious; but several times ago I tore my hair.
Hope this helps someone keep their hair.
source
share