GridViw控件的使用
1.从工具箱中拉出GridView
2.绑定数据:
protected void Page_Load(object sender, EventArgs e) { GridView1.DataSource = new CategoryDAO().SelectAll(); GridView1.DataBind();
}