The code example below prohibits a user from editing cards that contain information unrelated to the Sales department.
string UserDepartment = "Sales";
...
protected void ASPxCardView1_StartCardEditing(object sender, DevExpress.Web.ASPxStartCardEditingEventArgs e)
{
if (ASPxCardView1.GetCardValuesByKeyValue(e.EditingKeyValue, "Department").ToString() != UserDepartment) {
e.Cancel = true;
}
<dx:aspxcardview ID="ASPxCardView1" AutoGenerateColumns="False" runat="server" DataSourceID="ObjectDataSource1" KeyFieldName="Id" OnStartCardEditing="ASPxCardView1_StartCardEditing">
<Columns>
<dx:CardViewTextColumn FieldName="Department" VisibleIndex="0" Width="10%">
</dx:CardViewTextColumn>
...
</Columns>
</dx:aspxcardview>