DataTable.Select() Property: Giving Index Out of Bound Exception
<p>I'm trying to select only those rows which have Parent ID = 0</p>

<p><pre></p>

<code>int predecessor = Parent;

        StringBuilder valuePath = new StringBuilder();
        valuePath.Append(Parent.ToString());

DataRow[] drPar;

            while (true)
            {
                drPar = dt.Select("MenuID=" + predecessor);
                if (drPar != null)
                {
                    if (drPar[0]["ParentID"].ToString().Equals("0"))
                    break;
                }
</code></pre>

<p> </p>

<p>drPar[0]["ParentID"].ToString().Equals("0") is giving me
Out of Bound exception ..</p>

<p>Help Please !</p>
