当我将图像加载到 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);
}