如何在Windows窗体中使用dataBinding [英] how to use dataBinding in windows form
本文介绍了如何在Windows窗体中使用dataBinding的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在使用datagridview的形式,并倾向于与它绑定.请以exp.
hi all,
I''m using datagridview in the form and tend to bind with it. please reply with an exp.
推荐答案
回复有 [^ ]了解如何绑定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;
这篇关于如何在Windows窗体中使用dataBinding的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文