且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Windows窗体中使用dataBinding

更新时间:2023-12-06 09:45:22

回复 [^ ]了解如何绑定datagridview和
[
Have go there[^] to learn how to bind datagridview and
there[^] to learn by using Wizard[Designer]

or you can use given Code Snippet

SqlDataAdapter da = new SqlDataAdapter("your Command", connection);
            DataTable table = new DataTable();
            da.Fill(table);
            dataGridView1.DataSource = table;