Is it possible to get the column names directly from a datacontext? Below I'm just hard coding the DataTextField and DataValueField, but I'd like to be able to get them from the datacontext if possible. What is the recommended way of getting the column names in a strongly-typed way?
DataClassesDataContext db = new DataClassesDataContext(WebConfigurationManager.ConnectionStrings[connstring].ConnectionString);
drdPriority.DataSource = db.Tasks;
drdPriority.DataTextField = "TaskDescription";
drdPriority.DataValueField = "TaskId";
drdPriority.DataBind();