I wanna clear all the controls in a Form.
I have used the following Code:
foreach (var control in this.Controls)
{
if (control is DevExpress.XtraEditors.TextEdit)
{
((TextBox)control).Text = "";
}
if (control is DevExpress.XtraEditors.CheckEdit)
{
((CheckEdit)control).Checked = false;
}
if (control is DevExpress.XtraEditors.LookUpEdit)
{
((LookUpEdit)control).EditValue = null;
}
}
Am using LayoutControl so in Control variable is taking the layoutcontrol name not the control inside the Layout Control
Is there any way to solve this..