Question Need code to parse html to datagridview using HTML AGILITY PACK

ghitpro

New member
Joined
Mar 22, 2016
Messages
1
Programming Experience
Beginner
I'm new .Net programming, i need code in vb.net to parse html table to data grid view, below is the actual html sample (16 columns and 3 rows).
Thank You :)


Row 1


<tr align=left bgcolor="#F5F5DC">
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">0302972147</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">20Z093874001</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">G03906154-000000 1</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">000690</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">0456398</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">L2G47A</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">2016-02-19</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">Testing</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">BLC</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">0456426</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">Integrated</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">P_SHIPPED</font>
</td>
<td valign=top colspan=1>&nbsp
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">G03906154-000000</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">2016-01-29 01:27:00 CST</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">2016-01-07 09:15:58 CST</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">0011283565</font>
</td>
</tr>

Row 2
<tr align=left bgcolor="#F5F5DC">
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">0302976752</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">26Z139827001</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">G03910495-000000 1</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">000080</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">0506857</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">L2G47A</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">2016-03-08</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">Testing</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">BLC</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">0506906</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">Integrated</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">P_SHIPPED</font>
</td>
<td valign=top colspan=1>&nbsp
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">G03910495-000000</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">2016-02-16 01:27:00 CST</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">2016-01-25 16:55:54 CST</font>
</td>
<td valign=top colspan=1><font face="verdana, arial, helvetica" size="-2">0011317079</font>
</td>
 
Top Bottom