【发布时间】:2012-01-25 12:43:07
【问题描述】:
我使用ASPxGridView 和EntityDataSource 作为它的数据源。在EntityDataSource 中,我编写了CommandText,因此无法将“EnableInsert”、“EnableUpdate”或“EnableDelete”设置为true。这就是我手动操作(插入、更新、删除)数据的原因。更改是手动传递到数据库的。但是在 GridView 的一侧给出了这些错误:
用于插入:"Insert is disabled for this control."
更新:"Update is disabled for this control."
删除:"Delete is disabled for this control."
我该如何解决这个问题?
(使用CommandText的原因是在GridView中显示的参数和连接超过1个表格。)
【问题讨论】:
-
大约在那个时候 (2012) 带有 EF 的 ASPxGriView 是只读的。这要好得多,因为即使按列排序也不起作用。
标签: asp.net devexpress aspxgridview entitydatasource