title: Validation of another controls based on the dropdown choice
body: <p>I am facing a problem for validating the dependency controls. How to validate the another controls which is based on the values of dropdownlist (combo box). Please see the below example. For Example : A dropdown has two values A and B. If user selects "A", then rest of the fields should become required fields and if user selects value “B” from the dropdown, then all other fields should become non-mandatory fields.</p>
  
  <p>Note : i am using the devexpress gridview with default template.</p>
  
  <pre><code>&lt;dx:ASPxGridView ID="ABC" runat="server" AutoGenerateColumns="False"
                      DataSourceID="ABCDataSource" EnableTheming="True"
                       Width="100%" ClientInstanceName="gridABC"&gt;
                      &lt;Columns&gt;
                          &lt;dx:GridViewCommandColumn Caption="Actions" ShowInCustomizationForm="True" 
                              VisibleIndex="0"&gt;
                              &lt;EditButton Visible="True"&gt;
                              &lt;/EditButton&gt;
                        &lt;/dx:GridViewCommandColumn&gt;
                        &lt;dx:GridViewDataComboBoxColumn Caption="List of Type" FieldName="ListType" 
                              ShowInCustomizationForm="True" VisibleIndex="4" Width="100px"&gt;
                              &lt;PropertiesComboBox DataSourceID="ListTypeDataSource" 
                              TextField="ListTypeABC" ValueField="ListTypeABCId" Width="100px"&gt;
                              &lt;ValidationSettings&gt;
                                      &lt;RequiredField ErrorText="ListType required" IsRequired="True" /&gt;
                            &lt;/ValidationSettings&gt;
                            &lt;/PropertiesComboBox&gt;
                              &lt;EditFormSettings ColumnSpan="1" VisibleIndex="1" /&gt;
                          &lt;/dx:GridViewDataComboBoxColumn&gt;
                              &lt;dx:GridViewDataTextColumn Caption="Name"  FieldName="Name" ShowInCustomizationForm="True" 
                              VisibleIndex="2" Width="100px"&gt;
                              &lt;PropertiesTextEdit MaxLength="30" Width="100px"&gt;
                              &lt;ValidationSettings&gt;
                                      &lt;RequiredField ErrorText="Item Name required" IsRequired="False" /&gt;
                            &lt;/ValidationSettings&gt;
                              &lt;/PropertiesTextEdit&gt;
                              &lt;EditFormSettings ColumnSpan="1" VisibleIndex="2" /&gt;
                          &lt;/dx:GridViewDataTextColumn&gt;
                          &lt;dx:GridViewDataTextColumn Caption="Contact"  FieldName="Contact" ShowInCustomizationForm="True" 
                              VisibleIndex="3" Width="100px"&gt;
                              &lt;PropertiesTextEdit MaxLength="30" Width="100px"&gt;
                              &lt;ValidationSettings&gt;
                                      &lt;RequiredField ErrorText="Contact" IsRequired="False" /&gt;
                            &lt;/ValidationSettings&gt;
                              &lt;/PropertiesTextEdit&gt;
                              &lt;EditFormSettings ColumnSpan="1" VisibleIndex="3" /&gt;
                          &lt;/dx:GridViewDataTextColumn&gt;
                         &lt;Templates&gt;
                          &lt;EditForm&gt;
                              &lt;table&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;`&lt;dx:ASPxGridViewTemplateReplacement ReplacementType="EditFormEditors" ID="ASPxGridViewTemplateReplacement1"
                                              runat="server"&gt;
                                              &lt;/dx:ASPxGridViewTemplateReplacement&gt;
  </code></pre>
  
  <p>
   
    `</p>