When I run the following code:
{
if (e.Item.ItemType == System.Web.UI.WebControls.ListItemType.Item ||
(e.Item.ItemType ==
System.Web.UI.WebControls.ListItemType.Alternating Item))
{
int i = e.Item.Cells[6];
string s = i.ToString();
if (s == "0")
{
e.Item.Cells[0].Text = "NO";
}
}
I am getting the following error:
Cannot explicity convert type 'System.Web.WebUI.WebControls.TableCell' To int
What do I need to cnage to make this work?
Thanks,
Dave