Hi Im trying to Populate my datagridview from data scraped off of webpage i Want to be able to report progress when datagrid finished updating.. with a progressbar..
Please Help!!!!!! Thank You..
Heres My code
Dim theElementCollection As Windows.Forms.HtmlElementCollection
theElementCollection = Form1.WebBrowser2.Document.GetElementsByTagName("a")
For Each curElement As HtmlElement In theElementCollection
Form1.DataGridView1.Rows.Add(curElement.GetAttribute("title"), (curElement.GetAttribute("href")))
Dim numberOfRows = Form1.DataGridView1.Rows.Count - 1
Dim i As Integer = 0
While i < numberOfRows - 2
For ii As Integer = (numberOfRows - 2) To (i + 1) Step -1
If Form1.DataGridView1.Rows(i).Cells(0).Value.ToString() = Form1.DataGridView1.Rows(ii).Cells(0).Value.ToString() Then
Form1.DataGridView1.Rows.Remove(Form1.DataGridView1.Rows(ii))
numberOfRows -= 1
End If
Next
i += 1
End While
Next