Online Home
var tt = final.ToList();
if(tt.Exists(o=> o == Convert.ToInt64(DataBinder.Eval(e.Row.DataItem, "ID"))))
{
e.Row.BackColor = System.Drawing.ColorTranslator.FromHtml("#0000ff");
}
reference:- https://www.geeksforgeeks.org/c-sharp-check-if-an-array-contain-the-elements-that-match-the-specified-conditions/
No comments:
Post a Comment