Comparison of one column of datatable of having value matching or not

Hi Friends,

I had one column of data table which is shown below :
ajay
varun
karan
harsh
I need to compare the karan name which is existing or not …I don’t want to go with for each row and for each activity and the output should be get matched or not matched then how can I approach this to get easily solved.Please help me in this case.

you can loop through the particular column and use if condition like this
row(“Name”).toString.contains(“karan”)
cheers
@saneeth_kandukuri

Thanks for your reply Pradeep, according to our project requirement I dont want to go with loop , it increases complexity so I want the another way to resolve the problem

1 Like

well you can do this
DataTableVariable.Rows.Item(0).Item(0).ToString.Contains(“Karan”)
Cheers
@saneeth_kandukuri

1 Like

Thank you for providing the information @Pradeep_Shiv

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.