Hey there,
Try this:
Add
DataKeyNames
property of ListView first, like:
DataKeyNames="quantity"
and Use this code to check quantity:
foreach (ListViewDataItem item in ListView1.Items)
{
int quantity = Convert.ToInt32(ListView1.DataKeys[item.DisplayIndex]["quantity"].ToString());
if (quantity < 5)
{
}
}
You can get other values of a specific row similar to Quanity.
Hope it helps
Azee...