DBFileName=DevExpress.Utils.FileHelper.FindingFileName(Appliaction.StartupPath,"Data\\Product>xml");
if(DBFileName != "")
{
DataSet dataSet = new DataSet();
dataSet.ReadXml(DBFileName);
gridControl1.DataSource = dataView = dataSet.Tables[0].DefaultView;
}
时间: 2024-10-21 01:04:57