标签: c# row datasource
var result = from file in new System.IO.DirectoryInfo(gridpath).GetFiles("*.stn") select file; dataGridView1.DataSource = result.ToList();