从Windows窗体的DataRepeater控件中读取 [英] Read from DataRepeater Control in windows form
本文介绍了从Windows窗体的DataRepeater控件中读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有人知道如何遍历DataRepeater ItemTemplates以从控件中提取数据并将其保存到数据库中?
在此先感谢
does any one know how to loop through DataRepeater ItemTemplates to extract the data from the controls and save it to a database?
Thanks in advance
推荐答案
其中一种方法,请尝试:
One of the ways, Try:
DataRepeaterItem currItem;
for(int i=0; i < mydatarepeater.itemcount; ++i)
{
myDataRepeater.CurrentItemIndex = i;
currItem = myDataRepeater.CurrentItem;
// currItem has all that you need. Get the data out of it now as per your need.
}
这篇关于从Windows窗体的DataRepeater控件中读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文