Remove Selected Rows DataGridView And ListView
Untuk sobat yang masih belum tahu bagaimana cara menghapus selected rows di datagridview dan cara menghapus selected items di listview di Visual Basic.NET, saya sudah buatkan functionnya. Silahkan disimak dengan baik ya...
Ini Untuk DatagridView :
Private Sub RemoveSelectedRows(ByVal djieDataGridView As DataGridView)
For Each iRow As DataGridViewRow In djieDataGridView.SelectedRows
djieDataGridView.Rows.RemoveAt(iRow.Index)
Next
End Sub
Ini Untuk ListView :
Private Sub RemoveSelectedItems(ByVal djieListView As ListView)
For Each iItem As ListViewItem In djieListView.SelectedItems
djieListView.Items.RemoveAt(iItem.Index)
Next
End Sub
Cukup dengan coding yang pendek itu saja.... OK
Tags:
remove cell datagridview, remove row datagridview, delete row datagridview, delete cell datagridview, how to delete selected datagridview, delete selected row, delete selected cell, clear datagridview, clean datagridview, vb net, c#, fuction, example, source code
Tags:
remove cell datagridview, remove row datagridview, delete row datagridview, delete cell datagridview, how to delete selected datagridview, delete selected row, delete selected cell, clear datagridview, clean datagridview, vb net, c#, fuction, example, source code
Posting Komentar untuk "Remove Selected Rows DataGridView And ListView"