can't bind to datatable
Kevin163 opened this issue · comments
if use this syntax:
Html.Kendo().Grid<DataRowView>()
.Name("test")
.Columns(cols => { cols.Bound("Code"); })
when show this page will throw exception:
InvalidOperationException: Bound columns require a field or property access expression.
Kendo.Mvc.UI.GridBoundColumn<TModel, TValue>..ctor(Grid grid, Expression<Func<TModel, TValue>> expression)
how should i bind to datatable like ui for asp.net mvc?