if ([B][COLOR="#FF0000"]dt[/COLOR][/B] != null && [B][COLOR="#FF0000"]dt[/COLOR][/B].Rows.Count > 0)
{
FindInTable([B][COLOR="#008000"]dtClone[/COLOR][/B], "T1");
}
Sorry for my wrong choosing to show things with a screenshot. Yes You are right.Firstly, please don't post screenshots of code as a first option. If you want to post code then post code, i.e.
[xcode=c#]your code here[/xcode]
That way we can easily copy the code and do various things with it, e.g. run it or quote part of it.
I need to know whether the Datatable filled with data or not then if it is possible I try to find an exactly string type letters.Secondly, you should look at the actual exception being thrown and not just provide a generic error message regardless. You don't necessarily have to tell the user but you at least should know exactly what the low-level issue was.
As for the issue itself, take a look at your code, which I have had to retype by hand because you posted a screenshot instead of actual code:What's the point of testing for the existence of rows in `dt` when it's `dtClone` that you're passing to the method?C#:if ([B][COLOR=#FF0000]dt[/COLOR][/B] != null && [B][COLOR=#FF0000]dt[/COLOR][/B].Rows.Count > 0) { FindInTable([B][COLOR=#008000]dtClone[/COLOR][/B], "T1"); }