‘fieldName’ could not be resolved in the current scope or context. Make
sure that all referenced variables are in scope, that required schemas
are loaded, and that namespaces are referenced correctly.
That message appears when I declare _data in my controller :
string orderBy = sidx + " " + sord;
IQueryable<Table> _data;
_data = entities.Table.OrderBy(orderBy).Skip(skip).Take(take);
Any help?
Thanks For the Answer, now i realize it though… the problem is because the
sidxparameter that i got fromfieldNamein header jqgrid does not recognize the table name. I then tried to do it this way and now it solved 🙂Adding
it.to order variable: