c#2.0中datagridview有没有像datagrid中的DataBind()方法,我试过了,怎么都没有,有什么别人方法吗?请赐教,谢谢!
解决方案 »
- 16进制字符串如何转换成BigInteger(大数)类型
- C# SendMessage发送右键事件时,无法弹出菜单栏,如何解决
- 请推荐证券交易系统的书或相关网站论坛等资源, C++,C#均可, 谢谢
- asp访问dbf数据的方法
- [WinForm]DataGridview 中的ComboBox
- DataGridView添加行的问题
- datagridview问题
- 水晶报表的自定义公式字段问题,急急!!!
- 关于windows service的问题
- 100分求介绍c#的好网站!!!快来抢分喽!
- 如何把treeview 中的节点保存到XML文件中 ,并且在打开页面的时候能从XML加载到treeview中。。。
- 每次我都要一个一个改成"宋体, 12pt",请问改哪个配置,可以缺省实现字体和大小.
就可以了没有DataBind()的
"Select [CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country] From [Customers]";
// Run the query and bind the resulting DataSet
// to the GridView control.
DataSet ds = GetData(queryString);
if (ds.Tables.Count > 0)
{
AuthorsGridView.DataSource = ds;
AuthorsGridView.DataBind();
}
else
{
Message.Text = "Unable to connect to the database.";
}