'========= 애플워치 데이터 삭제 로직 =====================
with 데이터그리드뷰
For i = 0 To .RowCount - 1
.MultiSelect = True
If .Rows(i).Cells(1).Value = "APPLE WATCH" Then
.Rows(i).Selected = True
End If
Next
For Each Row As DataGridViewRow In .SelectedRows
If Row.Cells(1).Value = "APPLE WATCH" Then
.Rows.Remove(Row)
End If
Next
.MultiSelect = False
end with
'================================================
'VB.net > DataGridView' 카테고리의 다른 글
그리드뷰 전체 DB에 업로드하는 방법 (0) | 2020.04.02 |
---|---|
Tooltip 이용법 (with gridview) (0) | 2019.11.27 |
datagridview 사용팁 17가지 (0) | 2018.11.23 |
DatagridView 이벤트 Numbers, Backspace & Delete 키 전용 VB.Net을 허용하려면 (0) | 2018.11.09 |
데이터그리드뷰 복사하기 (0) | 2018.10.22 |