Thanks for this Konstantin. I need just to figure out the meaning of the message. Sorry.
But the thing that I want to achieve is a bit more complicated.
I have a list in my controller coming from a table in a database and I want to use the ViewBag for selecting the value in a list in editor popup (that works well) but want to display the LABEL and not CODE in the grid (even is CODE is stored in the database table).
public async Task<IActionResult> Index()
ViewData["myList"] = new SelectList(_context.MYTABLE.Where(m => (m.FIELDNAME == "MYTYPE")),"CODE", "LABEL");
columns.Bound(model => model.myCode); // For testing purpose
columns.Bound((((ViewBag["arType"] as List<SelectList>).Where(p => p.DataValueField == "LOC")) as SelectListItem).Text);
// Error when executing
Any suggestion ?