上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 57 下一页
摘要: 开始以前,先认识一下WinForm控件数据绑定的两种形式,简单数据绑定和复杂数据绑定。 1. 简单的数据绑定 例1 using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["connSt 阅读全文
posted @ 2021-05-22 21:21 清语堂 阅读(2517) 评论(0) 推荐(1) 编辑
摘要: 一、数据集对象DataSet 驻留于内存,临时存储数据。 简单理解为一个临时数据库,将数据源的数据保存在内存中,独立于任何数据库。 在CensorForm窗体的Load事件里实现添加数据的代码: DataTable table = new DataTable(); //创建表对象 //添加表的列结构 阅读全文
posted @ 2021-05-22 19:18 清语堂 阅读(902) 评论(0) 推荐(0) 编辑
摘要: https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/windows-forms-controls-by-function?view=netframeworkdesktop-4.8 阅读全文
posted @ 2021-05-22 10:58 清语堂 阅读(44) 评论(0) 推荐(0) 编辑
摘要: https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/windows-forms-controls-by-function?view=netframeworkdesktop-4.8 控件 阅读全文
posted @ 2021-05-22 10:57 清语堂 阅读(54) 评论(0) 推荐(0) 编辑
摘要: https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/how-to-bind-windows-forms-controls-to-dbnull-database-values?view=netframeworkdeskto 阅读全文
posted @ 2021-05-22 09:43 清语堂 阅读(72) 评论(0) 推荐(0) 编辑
摘要: https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/how-to-bind-to-a-web-service-using-the-windows-forms-bindingsource?view=netframework 阅读全文
posted @ 2021-05-22 09:27 清语堂 阅读(41) 评论(0) 推荐(0) 编辑
摘要: https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/how-to-bind-a-windows-forms-control-to-a-type?view=netframeworkdesktop-4.8 例子 下面的代码通 阅读全文
posted @ 2021-05-22 08:53 清语堂 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 在构建与数据交互的控件时,有时会发现有必要将控件绑定到生成其他对象的对象或方法。这样的对象或方法称为工厂。例如,您的数据源可能是方法调用的返回值,而不是内存或类型中的对象。您可以将控件绑定到这种数据源,只要该源返回一个集合即可。 您可以使用BindingSource控件轻松地将控件绑定到工厂对象。 阅读全文
posted @ 2021-05-22 08:26 清语堂 阅读(91) 评论(0) 推荐(0) 编辑
摘要: You can expose the sorting and filtering capability of BindingSource control through the Sort and Filter properties. You can apply simple sorting when 阅读全文
posted @ 2021-05-22 07:56 清语堂 阅读(125) 评论(0) 推荐(0) 编辑
摘要: https://docs.microsoft.com/zh-cn/dotnet/desktop/winforms/controls/bindingsource-component?view=netframeworkdesktop-4.8 BindingSource 组件 封装数据源以绑定到控件。 B 阅读全文
posted @ 2021-05-21 14:25 清语堂 阅读(286) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 57 下一页