Is there a way to display the columns of the data you are selecting from when binding to a datagrid with an empty datasource? Whenever I bind with an empty datasource, the grid won't even show.
var results = from t in db.vwTaskInfos where t.PriorityId == Convert.ToInt32(drdPriority.SelectedValue) select t;
gvTasks.DataSource = results;
gvTasks.AutoGenerateColumns = true;
gvTasks.DataBind();