Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
C# datatable get all column names into string array using (linq/predicate
SUBMITTED BY:
Guest
DATE:
Nov. 21, 2013, 5:31 a.m.
FORMAT:
C#
SIZE:
161 Bytes
Raw
Download
Tweet
HITS:
876
Go to comments
Report
string
[]
columnNames
=
dt
.
Columns
.
Cast
<
DataColumn
>
()
.
Select
(
x
=>
x
.
ColumnName
)
.
ToArray
();
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus