Hi,
I have a strange problem, I don't receive any modifications from
listview in edit mode (OldValues & NewValues are empty)
<asp:ListView ID="lvEditPerso nRoles" runat="server"
DataKeyNames="P ersonId,RoleEnt ityGroup"
DataSourceID="L DSPersonRoles"
OnItemUpdated=" lvEditPersonRol es_ItemUpdated"
OnItemUpdating= "lvEditPersonRo les_ItemUpdatin g">
<LayoutTemplate >
<table class="commonLi st">
<thead>
<tr>
<th class="sortable " nowrap style="width:
300px">
<a href="#">Entity / Role</a>
</th>
<th class="sortable " nowrap style="width:
50px">
<a href="#">List</a>
</th>
<th class="sortable " nowrap style="width:
50px">
<a href="#">New</a>
</th>
<th class="sortable " nowrap style="width:
50px">
<a href="#">Update </a>
</th>
<th class="sortable " nowrap style="width:
50px">
<a href="#">Delete </a>
</th>
<th nowrap style="width: 150px">
</th>
<th style="width: 60%"> </th>
</tr>
</thead>
<tbody>
<tr id="itemPlaceho lder" runat="server">
</tr>
</tbody>
</table>
</LayoutTemplate>
<ItemTemplate >
<tr runat="server">
<td>
<asp:Label ID="RoleEntityG roupLabelReadOn ly"
runat="server" Text='<%# Eval("RoleEntit yGroup") %>'></asp:Label>
</td>
<td>
<asp:CheckBox ID="AllowListCh eckBoxReadOnly"
runat="server" Checked='<%# Eval("AllowList ") %>'
Enabled="False" />
</td>
<td>
<asp:CheckBox ID="AllowNewChe ckBoxReadOnly"
runat="server" Checked='<%# Eval("AllowNew" ) %>'
Enabled="False" />
</td>
<td>
<asp:CheckBox ID="AllowEditCh eckBoxReadOnly"
runat="server" Checked='<%# Eval("AllowEdit ") %>'
Enabled="False" />
</td>
<td>
<asp:CheckBox ID="AllowDelete CheckBoxReadOnl y"
runat="server" Checked='<%# Eval("AllowDele te") %>'
Enabled="False" />
</td>
<td nowrap>
<asp:LinkButt on ID="lbtEdit" runat="server"
CommandName="Ed it" Text="Edit" CssClass="i_edi t iconText"></asp:LinkButton>
</td>
<td> </td>
</tr>
</ItemTemplate>
<EditItemTempla te>
<tr runat="server">
<td runat="server">
<asp:Label ID="RoleEntityG roupLabel"
runat="server" Text='<%# Eval("RoleEntit yGroup") %>'></asp:Label>
</td>
<td runat="server">
<asp:CheckBox ID="AllowListCh eckBox"
runat="server" Checked='<%# Bind("AllowList ") %>' />
</td>
<td runat="server">
<asp:CheckBox ID="AllowNewChe ckBox"
runat="server" Checked='<%# Bind("AllowNew" ) %>' />
</td>
<td runat="server">
<asp:CheckBox ID="AllowEditCh eckBox"
runat="server" Checked='<%# Bind("AllowEdit ") %>' />
</td>
<td runat="server">
<asp:CheckBox ID="AllowDelete CheckBox"
runat="server" Checked='<%# Bind("AllowDele te") %>' />
</td>
<td nowrap="nowrap" runat="server">
<asp:LinkButt on ID="lbtUpdate" runat="server"
CommandName="Up date" Text="Update" CssClass="i_com plete
iconText"></asp:LinkButton>
&nb sp;
<asp:LinkButt on ID="lbtCancel" runat="server"
CommandName="Ca ncel" Text="Cancel"></asp:LinkButton>
</td>
<td runat="server"> </td>
</tr>
</EditItemTemplat e>
</asp:ListView>
<asp:LinqDataSo urce ID="LDSPersonRo les" runat="server"
ContextTypeName ="PMS.PMSDC"
TableName="Pers onRolesAdapters " EnableUpdate="T rue"
OrderBy="RoleEn tityGroup" Where="PersonId == @PersonId" >
<WhereParameter s>
<asp:QueryStrin gParameter DefaultValue="0 " Name="PersonId"
QueryStringFiel d="itemId" Type="Int32" />
</WhereParameters >
</asp:LinqDataSou rce>
dbml entity: (dbo.PersonsRol esAdapter is a view)
<Table Name="dbo.Perso nsRolesAdapter" Member="PersonR olesAdapters">
<Type Name="PersonRol esAdapter">
<Column Name="PersonId" Type="System.In t32" DbType="Int NOT NULL"
IsPrimaryKey="t rue" CanBeNull="fals e" />
<Column Name="RoleEntit yGroup" Type="System.St ring"
DbType="VarChar (100) NOT NULL" IsPrimaryKey="t rue" CanBeNull="fals e" />
<Column Name="AllowList " Type="System.Bo olean" DbType="Bit"
CanBeNull="fals e" />
<Column Name="AllowNew" Type="System.Bo olean" DbType="Bit"
CanBeNull="fals e" />
<Column Name="AllowEdit " Type="System.Bo olean" DbType="Bit"
CanBeNull="fals e" />
<Column Name="AllowDele te" Type="System.Bo olean" DbType="Bit"
CanBeNull="fals e" />
</Type>
<UpdateFuncti on FunctionId="Fun ctionId1">
<Argument Parameter="pers on_id" Member="PersonI d"
Version="Origin al" />
<Argument Parameter="role _entity" Member="RoleEnt ityGroup"
Version="Origin al" />
<Argument Parameter="allo w_list" Member="AllowLi st" />
<Argument Parameter="allo w_new" Member="AllowNe w" />
<Argument Parameter="allo w_edit" Member="AllowEd it" />
<Argument Parameter="allo w_delete" Member="AllowDe lete" />
</UpdateFunction>
</Table>