DataRow[] row = ds.Tables[0].Select() 是什么用意呢?
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e){
//清除相片文件(服务器)
DataSet ds = bc.GetDataSet("select * from [file] where fileID='" + this.GridView1.DataKeys[e.RowIndex].Value.ToString() + "'", "file");
DataRow[] row = ds.Tables[0].Select();
foreach (DataRow rs in row) //将检索到的数据逐一,循环添加到Listbox1中
{
FileInfo file = new FileInfo(Server.MapPath(rs["Path"].ToString()));
file.Delete();
}