How to find if dataTable contains column which name starts with abc
Posted
by
VilemRousi
on Stack Overflow
See other posts from Stack Overflow
or by VilemRousi
Published on 2012-09-03T21:27:39Z
Indexed on
2012/09/03
21:37 UTC
Read the original article
Hit count: 240
In my program I have a dataTable and I´d like to know if is there a column which name starts with abc.
For example I have a DataTable and its name is abcdef
. I like to find this column using something like this:
DataTable.Columns.Constains(ColumnName.StartWith(abc))
Because I know only part of the column name, I cannot use a Contains method. Is there any simple way how to do that?
Thanks a lot.
© Stack Overflow or respective owner