使用 C#,我想在 Access 列中显示图像但无法访问。
for (int i = 0; i <= 5; i++)
{
if (myQuantity[i]!=null && myQuantity[i].Length>0)
{
row = dt.NewRow();
row["Name"] = myName[i];
row["Quantity"] = myQuantity[i];
row["Price"] = myPrice[i];
c = Convert.ToInt32(myQuantity[i]);
int price = Convert.ToInt32(myPrice[i]) * c;
row["Amount"] = price;
row["Action"]= " <img src='Images/cross.png' />";
dt.Rows.Add(row);
}
}
GridView1.DataSource = dt;
GridView1.DataBind();
}