Please try like this, Removing Set Items If setItemList.Count > 0 Then For Each items As String In setItemList set the PrimaryKey property for the DataTable <a href="http://dodyfccqzh.com">objcet</a> Dim myPrimaryKey(1) As DataColumn myPrimaryKey(0) = setDetailsDT.Columns( SetID ) setDetailsDT.PrimaryKey = myPrimaryKey use the Find() method to locate the DataRow Dim myRemoveDataRow As DataRow = setDetailsDT.Rows.Find(items) myRemoveDataRow.Delete() setDetailsDT.AcceptChanges() Next End If


トップ   一覧 検索 最終更新   ヘルプ   最終更新のRSS