79794741

Date: 2025-10-20 09:12:46
Score: 1
Natty:
Report link

Try to compare the Row of the DataRowView :

public static int GetIndex(this DataRowView rowView)
{
    for (int i = 0; i < rowView.DataView.Count; i++)
    {
        if (rowView.DataView[i].Row == rowView.Row)   // <-----
            return i;
    }

    return -1;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Athansios Savvidis