//循环遍历控件把不为空的文本清空
foreach (Control control1 in groupBox3.Controls)
{
if (control1 is DevExpress.XtraEditors.TextEdit)
{
if (((DevExpress.XtraEditors.TextEdit)control1).Text != "")
{
((DevExpress.XtraEditors.TextEdit)control1).Text = "";
}
else
{
((DevExpress.XtraEditors.TextEdit)control1).Text = "";
}
}
}