Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Silverlight 3-如何在数据网格上迭代_Silverlight_Silverlight 3.0_Datagrid - Fatal编程技术网

Silverlight 3-如何在数据网格上迭代

Silverlight 3-如何在数据网格上迭代,silverlight,silverlight-3.0,datagrid,Silverlight,Silverlight 3.0,Datagrid,提前感谢, 我试图在Silverlight3中迭代数据网格 我需要遍历所有项目,或者只是选中的项目,并提取一些列数据,以便在数据库中进行更新 因此,在一个按钮点击事件中,我一直在尝试foreach循环,但找不到正确的组合 谢谢, 里奇我想我明白了: foreach (var Item in gridExcludedPOGSList.SelectedItems) { ExcludePOGSList pogList =

提前感谢,

我试图在Silverlight3中迭代数据网格

我需要遍历所有项目,或者只是选中的项目,并提取一些列数据,以便在数据库中进行更新

因此,在一个按钮点击事件中,我一直在尝试foreach循环,但找不到正确的组合

谢谢, 里奇

我想我明白了:

            foreach (var Item in gridExcludedPOGSList.SelectedItems)
            {

                ExcludePOGSList pogList = (ExcludePOGSList)Item;
                accountNumber = pogList.AccountNumber.ToString();
                key_Id = pogList.Key_Id.ToString();

            }
希望它能帮助别人


Rich

您现在使用的是什么-项目还是项目资源?想分享一个你目前的组合是什么的例子吗?