Deleting specific rows from DataTable
2013-02-19 23:18 hongjiumu 阅读(170) 评论(2) 编辑 收藏 举报Deleting specific rows from DataTable
for
(
int
i = _vdtCurrentDataTable.Rows.Count-1; i >= 0;i-- )
{
if
(_vdtCurrentDataTable.Rows[i][
"Checked"
].ToString() ==
"True"
)
_vdtCurrentDataTable.Rows[i].Delete();
}