如何在Windows窗体的DataRepeater控件中绑定数据?

编程入门 行业动态 更新时间:2024-10-24 20:21:08
本文介绍了如何在Windows窗体的DataRepeater控件中绑定数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在数据库表中插入了一些数据.当我插入数据时,数据随后将被加载到DataRepeater控件中. 如何将数据集数据加载到DataRepeater控件中?我的疑问是如何将DataRepeater的控件分配给数据库表columnID's? 请给我一个示例解决方案... 谢谢

I insert some data into my database table. When I insert the data, the data is loaded into the DataRepeater control afterwards. How do I load dataset data into the DataRepeater control? My doubt is how I can assign controls of the DataRepeater to database table columnID''s? Please give me a sample solution... Thanks

推荐答案

尝试: SqldataAdapter adap=new SqldataAdapter("select * from tablename",con); Dataset ds=new Dataset(); adap.Fill(ds); dataRepeater.datasource=ds; dataRepeater.databind();

更多推荐

如何在Windows窗体的DataRepeater控件中绑定数据?

本文发布于:2023-11-08 16:11:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1569855.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:窗体   绑定   控件   数据   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!