>Dim cm As CurrencyManager = CType(Me.BindingContext(dgFileInfo.DataSource, dgFileInfo.DataMember), CurrencyManager) > >' Retrieve the default DataView of the DataGrid >Dim dv As DataView = CType(cm.List, DataView) > >' Use Currency Manager and DataView to retrieve the Current Row >Dim dr As DataRow >dr = dv.Item(cm.Position).Row >>I then do a check on a field in the datarow.
>If CType(dr("FileNumber"), String) = "" Then > dr.delete() >Else > 'Can't delete >End If >>The above works fine for selecting one row and then deleting, but how would I do multiple rows and be able to check each row before I delete?