As
OriginalGriff[
^] already mentioned, there's no standard way to achieve that, but... you're on the right track!
Assuming that
USER
and
Active
fields are type of integer and you want to add leading zeros, you have to change your
Select
statement to:
var valueLines = dt.AsEnumerable()
.Select(row =>
string.Concat(
row.Field<int>("USER").ToString("0000"),
",",
row.Field<int>("Active").ToString("0000000000"))
).ToList();
Good luck!