This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi There, The validation error does not go away even we choose the right data. We load the ComboBox into the DataGrid as: Column.EditTemplate = new DataTemplate(); editTemplate.VisualTree = EditComboBoxFactoryItemSrcStatic(string propertyName, bool isSelectedValueNItemSameType, ICollection values) with the function as:
// I also tried to comment out the following 3 lines, and it does not work either. itemSrcBinding.ValidationRules.Clear(); itemSrcBinding.ValidationRules.Add(new ComboBoxNonValidationRule()); itemSrcBinding.ValidatesOnDataErrors = true;
double click on the combobox cell (empty cell initially) and did not select anything from the dropdown, then go to the next cell, at this time the combobox will have red-box surround it, which is correct since we need to choose something from drop down. Now, go back to the combobox, choose something out of the drop down, then go to the next cell, the red-box still there, which is wrong since we have value for it. Not sure how to fix it. It does not exist before. The full source code on how to load the combobox is in the LargeDataTable on thread: The following are screen shot |
|
|
Hello Gordon Thanks for pointing this out. It looks like this issue has always been around. This will be resolved in the next nightly build. Jason Fauchelle |
|