Skip to main content

You could use

List<DataRow> list = new List<DataRow>(dt.selectSelect());

dt.select()dt.Select() will return all rows in your table, as an array of datarows, and the ListList constructor accepts that array of objects as an argument to initially fill your list with.

You could use

List<DataRow> list = new List<DataRow>(dt.select());

dt.select() will return all rows in your table, as an array of datarows, and the List constructor accepts that array of objects as an argument to initially fill your list with.

You could use

List<DataRow> list = new List<DataRow>(dt.Select());

dt.Select() will return all rows in your table, as an array of datarows, and the List constructor accepts that array of objects as an argument to initially fill your list with.

Source Link
Kibbee
  • 66.2k
  • 28
  • 145
  • 184

You could use

List<DataRow> list = new List<DataRow>(dt.select());

dt.select() will return all rows in your table, as an array of datarows, and the List constructor accepts that array of objects as an argument to initially fill your list with.