Adding a dropdownlist for each row in a column.
Adding a dropdownlist for each row in a column.
xesionprince
Posts: 12Questions: 0Answers: 0
Insurance Group
Products
Assignment
@For Each row In _assignments
@
@row.InsuranceGroupKey
@row.GroupName
@row.ProductKey
@row.ProductName
@For Each choice As SelectListItem In ViewBag.assignmentChoices
@If row.ClassificationChoice Is Nothing Then
@
Not Assigned
Else
@@choice.Text
End If
Next
Next
I am using a DataTable in an MVC 4 application using VB.net and Razor syntax.
I have want to be able to get the selected text of my dropdown in the third column so I can use it elsewhere in my view, send it to my Controller, etc
Please help!
Products
Assignment
@For Each row In _assignments
@
@row.InsuranceGroupKey
@row.GroupName
@row.ProductKey
@row.ProductName
@For Each choice As SelectListItem In ViewBag.assignmentChoices
@If row.ClassificationChoice Is Nothing Then
@
Not Assigned
Else
@@choice.Text
End If
Next
Next
I am using a DataTable in an MVC 4 application using VB.net and Razor syntax.
I have want to be able to get the selected text of my dropdown in the third column so I can use it elsewhere in my view, send it to my Controller, etc
Please help!
This discussion has been closed.