How to contain keyword to contain in particular column

Hi Team,

I want to contain queue key to column value and get the result of row item in excel .

I have more queueitem i will pass one by one that queue item should contain column value, if contain all the row item are need.

if queue key is “xxxnew” should contain column value of “BB” whatever value contain that row items are required.

Please help me anyone for this.

Input:
Queue item key is xxxnew

image

Expected out:
image

Hi @Raja.G

Try this

DT.AsEnumerable().Where(Function(row) queueKey.Contains(row("BB").ToString)).CopyToDataTable()

Regards,

Hi @irtetala,

I am facing error “Assign: The Source Contains no DataRows”.

Please share code if you have

Some other queue item also it will come that it will be not contain so only issue came
like “invoice number” for queueitem that is not contains

Regards,
Raja G

@Raja.G

Try like below

arrDr = DT.AsEnumerable().Where(Function(row) queueKey.Contains(row("BB").ToString)).ToArray

Sequence16.xaml (26.7 KB)

Regards,

1 Like

Hi @lrtetala ,

I couldnt able to download your code.

Document is invalid error came

Regards,
Raja G

@Raja.G

Regards,

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