本文介绍了如何在datatable中找到行的索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! hi i有数据包,其中包含n个行的数字 i想知道indexfof那个行如果该行ItemArray包含假设a 请帮帮我..hii have datatable which contain n numer of rowi want to know the indexfof that row if that row ItemArray contains suppose "a"please help me out..推荐答案int index = -1;DataRow[] rows = dt.Select("MyColumnName Like '%a%'");if (rows.Count() > 0) { index = myDataTable.Rows.IndexOf(rows[0]); } 这篇关于如何在datatable中找到行的索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-15 02:24