Hey there,
Let's suppose you want to get
BatchNo
from the DataTable that you stored in the ViewState:
if(ViewState["BatchTable"] != null)
{
DataTable dt= (DataTable)ViewState["BatchTable"];
for(int i = 0; i < dt.Rows.Count; i++)
{
string batchNo = dt.Rows[i]["BatchNo"].ToString();
if(batchNo.Equals("Your Value to Compare"))
{
}
}
}
Hope this helps, let me know if this isn't what you were looking for.
Azee...