My problem is the same as this Q328185!
I wanted to add some information, hoping to help resolve.
In my case, two columns run regularly, when I change the value NewValues and OldValues are different and show the right values, but for one column NewValues and OldValues are always equals. For this column, even when I change the value in the NewValues I always see the old value.
I also tried to set the filedName property of the bad column on one of the other two, but the result is always the same.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello Francesco:
I am afraid we can't reproduce the issue described in Q328185.
Could you please illustrate it with a sample or modify the project attached to that report?
Thanks
Kate.
Hello Kate,
I identified the cause of my problem.
I'm using the event CellEditorInitialize to disable the edit on some rows, this is my code:
protected void grid_CellEditorInitialize(object sender, ASPxGridViewEditorEventArgs e)
{
if (e.Column.Name == "value")
if(gridTransactions.GetDataRow(e.VisibleIndex)["eventId"].ToString()=="999")
e.Editor.Enabled = false;
}
With this code in the RowUpdating event for the column "value" NewValues and OldValues always equals.
This only after you have upgraded to version v2011 vol 1.4.
Regards
Francesco
Hello Francesco:
Please cast an editor to the corresponding type (ASPxTextBox, ASPxComboBox and so on) and use the ClientEnabled property instead of Enabled. For example:
protected void grid_CellEditorInitialize(object sender, ASPxGridViewEditorEventArgs e) { if (e.Column.Name == "value") if(gridTransactions.GetDataRow(e.VisibleIndex)["eventId"].ToString()=="999") (e.Editor as ASPxTextBox).ClientEnabled = false; }
Does it help?
Thanks
Kate.