We have two grids located one above other one, we need to compare the column values of the grids by using the column names.
I want to achieve the code in such a manner that:
//Comparing column value using column name.
if (Grd1Coll["PricingStream"].value == Grd2Coll["PricingStream"].value)
{
//do this
}
else
{
//do this
}
What data structure like dictionary, hastable, hashset or etc. should I go for? Also, how can I make use of the IComparator
interface here, if it's possible?