Linq select column without Header

Hi all, I have a linq command that refers to the heading of a column, however the new table has no column heading. How can I use the column without a column header?

My idea Column[2].toString does not work unfortunately.

(From d In DT_aus_PDF.AsEnumerable
Where System.Text.RegularExpressions.Regex.IsMatch(d**(“Column2”).ToString**,“([0-9]{8})”)
Select d).ToList

Had you tried:
d(1) VB
d[1] C#

2 Likes

Perfect, thank you!

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