I have a multi-select datagridview that has 2 columns. I need to read the two columns of each selected item into an arraylist.
Part 2
Can I create a Property typed as an ArrayList and save the ArrayList to that Property?
Visual Basic.NET.NET Programming
Last Comment
sherbug1015
8/22/2022 - Mon
John (Yiannis) Toutountzoglou
try this
Dim ArrList As ArrayList = New ArrayList() Dim i As Integer = 0 Dim Col as integer For i = 0 To Me.dataGridView1.SelectedRows.Count ArrayList.Insert(0, Me.dataGridView1.SelectedRows(i)) Next
Open in new window