数据表中的数据行 [英] datarows in datatable
本文介绍了数据表中的数据行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
.item是在repeatercontrol中使用复选框选中的...所以如何从数据表中将其选中(ID或成员编号)到数据行..请给我个主意
.items are selected in repeatercontrol using checkbox...so how to get this checked (id or member no )from the datatable to datarow ..Please give me idea
推荐答案
DataRow代表DataTable中的一行.在这里查看: MSDN:DataRow类 [
DataRow represents a row in DataTable. Look here: MSDN: DataRow Class[^]
Sample:
foreach(DataRow dr in myTable.Rows)
{
// dr id the datarow with data
// dr["myCokumnname"] has value
// dr[0] has value for column 0
}
这篇关于数据表中的数据行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文