i need to compare a gridview with a datatable, and when its matched i need to check a checkbox control the exact row that is matched. so can anyone give me an opinion on this??
currently im using a foreach() and datatable.select(). and the code is here..
foreach (GridViewRow grdrwCr /*dtrwCr1*/ in grdCr.Rows /*&dtCr1.Rows*/)
{string TxnNo = grdrwCr.Cells["TxnNo"].ToString();
string TxnDate = grdrwCr.Cells["TxnDate"].ToString();
string TxnID = grdrwCr.Cells["TxnID"].ToString();
string ChequeNo = grdrwCr.Cells["ChequeNo"].ToString();
string CrAmount = grdrwCr.Cells["lblCrAmount"].ToString();