當我將圖像加載到ListView中時,數字顯示在圖像下方。我怎樣才能刪除它們? 以下是我的代碼將圖像加載到ListView控件:刪除ListView中的編號
DataTable dtPath = new DataTable();
dtPath = ContrPtMRD.SelectFilePaths(ObjPtMRH);
ImageList myImageList = new ImageList();
lvPtMedicalRecord.LargeImageList = myImageList;
int imageIndex = 0;
foreach (DataRow rows in dtPath.Rows)
{
myImageList.Images.Add(Image.FromFile(rows[2].ToString()));
ListViewItem lvi = new ListViewItem(new string[]{rows[0].ToString(),rows[1].ToString()});
lvi.ImageIndex = imageIndex;
imageIndex++;
lvPtMedicalRecord.Items.Add(lvi);
}
是什麼'行[0]的ToString()'包括?數字來自哪裏? –