How do i comapre string and substrings out of DataTables? : I have a DataTable with 1 column and a List of DataTables with 2 columns each.<br>
I want to compare the Value of the DataTable with the first 6 digits of the Value of each DataTable in the List row by row. <br>
<br>**This is my Code:**

    for(int fs = 0; fs < dataTable.Rows.Count; fs++)
    {
        for(int fs2 = 0; fs < dataTableList.Count; fs2++)
        {
            for(int fs3 = 0; fs3 < dataTableList[fs2].Rows.Count; fs3++)
            {
                if(dataTable.Rows[fs]["columnName"].ToString().Equals(dataTableList[fs2].Rows[fs3]["otherColumnName"].ToString().Substring(0,6)))
                {
                    //do sth.
                }
            }
        }
    }

When the programm reaches `if(dataTable.Rows[fs]["columnName"].ToString().Equals(dataTableList[fs2].Rows[fs3]["otherColumnName"].ToString().Substring(0,6)))` it stops and i get an `System.ArgumentOutOfRangeException` error.<br>
Does anyody know what iam doing wrong? 
<br>When i MessageBox the substring its working btw...<br><br>with kind regards: speschel