当我将图像加载到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()'包括?数字来自哪里? –