Looping through datatable

Why I cannot loop through data-table.

Hi @monish06,
please try giving condition to the filter.
eg - OPTD.Select(“DTK1=1”)

I hope it helps.

1 Like

Actually value is not static OPTD.Select(“DTK1=1”) inside DTK1 it will change during for each activity, so am just validating with the column.

@monish06 The Expression OPTD.Select("DTK1=1’) will return an Array of DataRow, and hence if you’re doing in that way, I don’t think it will evaluate to True at All :sweat_smile:, You’re Comparing a String Value with Array of DataRow Value.

Can you Explain what are the Steps that you want to Perform ?

1 Like

Got it I figured it out Thanks guys!!!.

1 Like

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