1.DataGridView数据绑定 namespace WindowsFormsApplication1 { public partial class Form1 : Form { private List<Student> _students = new List<Student>(); public Form1() { InitializeComponent(); _students.Add(, School = "哈尔滨商业大学" }); _studen
转载:http://www.jetwu.cn/archives/737 winform treeView 数据绑定 private void Form1_Load(object sender, EventArgs e) { Types = new List<UrlTypes>() { , Name = }, , Name = }, , Name = }, , Name = }, , Name = }, , Name = }, , Name = } }; var topNode = new Tr
1. 简单的数据绑定 例1 using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["connStr"].ToString())) { SqlDataAdapter sda = new SqlDataAdapter("Select * From T_Class Where F_Type='Product' order by F_RootID,F_Orders&qu