Hi Frnz,
Kindly, help me. How to compare a single row with a whole column value in C3
For Ex:
ROW COLUMN
----------------------
SRI DEVI
BABU
SRI
I want to know the first row value "SRI" is present in that column or not. If its present no work, if its not present the row[0] value will be my answer......
Kindly, help me. How to compare a single row with a whole column value in C3
For Ex:
ROW COLUMN
----------------------
SRI DEVI
BABU
SRI
I want to know the first row value "SRI" is present in that column or not. If its present no work, if its not present the row[0] value will be my answer......
Code:
DataTable dt1 = new DataTable();
for (int i = 0; i < dt1.Rows.Count; i++)
{
DataRow dr = dt1.Rows[i];
for (int j = 0; j < dt1.Rows.Count; j++)
{
if ((dt1.Rows[i][8].ToString()) != (dt1.Rows[j][12].ToString()))
{
string str2 = ds1.Tables[0].Rows[i][0].ToString();
dr["Filter-Link2a"] = str2;
}
}
}
Comment