本文介绍了如何在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控件中绑定数据?
发布评论