DataReader has no random access. You need to "remember" the value from previous row.
string previous = null;
string current = null;
bool isFirst = true;
while (datareader.Read())
{
current = datareader["Sr No"].ToString();
if (isFirst)
{
isFirst = false;
}
else if(current == previous)
{
}
previous = current;
}