Hi,
I am using XamDataGrid. This grid is assigned a DataSource of Type ObservableCollection<string>. Now if I try to edit the Grid cell and delete all the text inside the editor and try to focus out of the test editor. It is giving me error -
Data Error - Unable to set cell value.
I think it is trying to st the null value to the Grid cell and throwing this error.
Any suggestions on this?
Sample is attached here.
Steps to reproduce -
1. Run the sample
2. It will show a datagrid with two rows.
3. Select any row. This will show the editor. Delete the text from the text editor
4. Try to focus out of the editor by using Tab key. The error will be thrown.
Regards,
Sachin
Hey Stefan,
Thanks for your response.
I was able to figure out the problem at my end. I had a CellChanged event within which I was setting the e.Cell.Record.SetCellValue(e.Cell.Field, e.Editor.Value, true);
And for the field where I was getting this error was having a validation check and hence was showing up this error. I am not sure if I can send you a sample of the same. But once I removed the Cell Changed event (which I am now handling in a different way) I don't get this popup message anymore.
My guess is this happens only when you have a Cell Changed event and also a IDataErrorInfo validation for a text field which is using a XamTextEditor as the Editor style.
Vijay
Hello,
Thank you for your post. I have been looking into it, but since in the thread are discussed several issues, could you please be more specific what is your issue and which sample should i use to reproduce it.
Looking forward for your reply.
I am also having the same issue. The data is just a string property.
We are using 11.2.20112.2046 version of Infragistics DLL.
serialize your classes then should take care the problem.
Good Luck!
hi,
We are using WPF4.V11.2 binaries. We are still facing this issue. Please let us know on which action this message will be shown. Or what is the solution for this.
Thanks
Prasad