score:86

Accepted answer

you can use linq query to do that.

list<string> list = dtusers.asenumerable()
                           .select(r=> r.field<string>("usercode"))
                           .tolist();

score:5

you can try this code,

list<string> list = dt.rows.oftype<datarow>().select(dr => (string)dr["columnname"]).tolist();

Related Query

More Query from same tag