I want to show my data validation error messages on the grid itself, i.e. whenever any error occures "!" sign mark appears on the grid on the particular grid & in the tool tip error message should be shown.
From the data base i am getting the XML & on the UI i am loading this XML into dataset & binding this dataset to UltraWinGrid.
It is possible in .Net dataGridView but i am not able to find the equivalent method in Infragistics.
Thanks in Advance.
Anurag
It sounds like you are looking for the SupportDataErrorInfo property on the Override.
Hi,
we are using InfragisticsWPF4.v10.2. in our case there is no possibility to implement IDataErrorInfo on the business class object. and our scenario is like this:
we have XamGrid, that contains one column as DropDown. this DropDwon is bound to some other DataSource that populates values on some other selection criteria on other control then XamGrid.
One of the Property of business object is binded to this Dropdown column. using MVVM pattern we change the value of this Property and there is a validation, that checks if the value is not found in DropDown then show Error.
How i should do this?
I did same thing with ListView control of .Net Framework and it did work as expected. it showed the error icon and the tooltip as required. To achieve this behavior, I created a ValidatonRule and binded to the DropDown.
<ComboBox.SelectedValue>
<Binding Path="DataItem.SelectedSubmitMethod" UpdateSourceTrigger="PropertyChanged" Mode="TwoWay" ValidatesOnDataErrors="True" ValidatesOnExceptions="True" >
<Binding.ValidationRules >
<StaticResource ResourceKey="ComboBoxSelectedItemValidationRule"/>
</Binding.ValidationRules>
</Binding>
</ComboBox.SelectedValue>
<Validation.ErrorTemplate>
<ControlTemplate >
<DockPanel>
<TextBlock Foreground="Red" FontSize="20" FontWeight="Bold">!</TextBlock>
<AdornedElementPlaceholder/>
</DockPanel>
</ControlTemplate>
</Validation.ErrorTemplate>
Is it Possible to do this with Infragistics?