如何把下面方法的结果绑定到GridView1中显示
lrj 2016-08-08 07:30:29 private DataTable GetTable()
{
string connString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["SqlConnStr"].ConnectionString;
SqlConnection Conn = new SqlConnection(connString);
string sql = "select * from news";
SqlCommand cmd = new SqlCommand(sql, Conn);
Conn.Open();
DataTable dt = new DataTable();
SqlDataAdapter sda = new SqlDataAdapter(cmd);
sda.Fill(dt);
Conn.Close();
cmd.Dispose();
return dt;
}
我是新手,刚开始学习,请大侠批评指教