I ran a query and returned a datatable,
myDataAdapter.Fill(myDataTable);
Now what is the best way to load the row values \"Value\" and \"Te
Datatable contains an extension method AsDataView . You can use this extension method to populate SelectList from a DataTable. A sample of code :
DataTable dt = new DataTable();
dt.Columns.Add("Id", typeof(string));
dt.Columns.Add("Name", typeof(string));
dt.Rows.Add("1", "test");
//populate selectlist with DataTable dt
var selectList = new SelectList(dt.AsDataView(), "Id", "Name");
Here Id in the SelectList is the selectedValue column and Name is the DisplayMember column.