IList pimList = gv_PisInfo.DataController.GetAllFilteredAndSortedRows(); //List<PisInfoModel> pimList = gc_PisInfo.DataSource as List<PisInfoModel>; if (pimList == null) return; foreach (PisInfoModel item in pimList) { string ip = item.Ip; bool pingResult = Ping(ip); if (pingResult) { item.Communications = 1; } else { item.Communications = 0; } }
获取过滤后的gridcontrol数据集方法
猜你喜欢
转载自www.cnblogs.com/wangpenghan/p/9776792.html
今日推荐
周排行