你的位置:首页 > ASP.net教程

[ASP.net教程]DevExpress 如何读取当前目录下文件,加载至grid


DBFileName=DevExpress.Utils.FileHelper.FindingFileName(Appliaction.StartupPath,"Data\\Product>

if(DBFileName != "")

{
DataSet dataSet = new DataSet();
dataSet.Read gridControl1.DataSource = dataView = dataSet.Tables[0].DefaultView;
}