DevExpress DataGrid, LinqDataSource, Row Insertion Issues -
DevExpress DataGrid, LinqDataSource, Row Insertion Issues -
here screenshot of problem:
http://screencast.com/t/zg2nqwjxyflh
i'm trying add together record db via linq using devexpress info grid. when submitting data, error is:
linqdatasource 'linqdslocales' has no values insert. check 'values' dictionary contains values.
this linqdatasource looks like:
<asp:linqdatasource id="linqdslocales" runat="server" contexttypename="mycompany.myobject.datadatacontext" tablename="locales" enableinsert="true" enableupdate="true" enabledelete="true" /> this grid:
<dx:aspxgridview id="gridlocales" runat="server" autogeneratecolumns="false" datasourceid="linqdslocales" keyfieldname="localeid"> <columns> <dx:gridviewcommandcolumn showincustomizationform="true" visibleindex="0"> <editbutton visible="true" /> <newbutton visible="true" /> <deletebutton visible="true" /> </dx:gridviewcommandcolumn> <dx:gridviewdatatextcolumn fieldname="localeid" readonly="true" visibleindex="1"> <editformsettings visible="false" /> </dx:gridviewdatatextcolumn> <dx:gridviewdatatextcolumn fieldname="name" visibleindex="2"/> <dx:gridviewdatatextcolumn fieldname="description" visibleindex="3"/> </columns> <settings showfilterrow="true" /> <templates> <editform> <dx:aspxpagecontrol id="tablocaleeditcontroller" runat="server" activetabindex="0" width="100%"> <tabpages> <dx:tabpage text="locale information"> <contentcollection> <dx:contentcontrol runat="server"> <dx:aspxgridviewtemplatereplacement id="localeeditors" replacementtype="editformeditors" runat="server" /> </dx:contentcontrol> </contentcollection> </dx:tabpage> <dx:tabpage text="role assigment"> <contentcollection> <dx:contentcontrol runat="server"> <dx:aspxcheckboxlist id="cblistroles" runat="server" valuetype="system.string" datasourceid="linqdsroles" textfield="rolename" valuefield="roleid" ondatabound="cblistroles_ondatabound" /> </dx:contentcontrol> </contentcollection> </dx:tabpage> </tabpages> </dx:aspxpagecontrol> <div style="text-align: right; padding: 2px 2px 2px 2px"> <dx:aspxgridviewtemplatereplacement id="updatebutton" replacementtype="editformupdatebutton" runat="server" /> <dx:aspxgridviewtemplatereplacement id="cancelbutton" replacementtype="editformcancelbutton" runat="server" /> </div> </editform> </templates> </dx:aspxgridview> can shed lite on this?
devexpress linqdatasource
Comments
Post a Comment