I'm going through a datagrid in vb.net and with the information that has an email in html format to send it by mail, everything works fine, only that the datagrid has two columns that are marked in the photo that are with the property invisible and which when I go through the datagrid also appear in the mail, another is also the last column I do not want to leave in the mail, as would be done to exclude those columns and the last one when going through the datagrid?
Code with which I go through the datagrid and form a table in html format which is sent by mail.
Dim BodyCorre As String
BodyCorre = "<table width='80%' style='border:Solid 2px Black;'
bgcolor='#3366FF' ><tr><th>ACTIVIDAD</th><th>RESPONSABLE</th>
<th>ESTATUS</th><th></th><th></th><th>FCH. TERMINO</th><th></th></tr>"
For Each Row As DataGridViewRow In DataGridView1.Rows
BodyCorre += "<tr bgcolor=#c3cbcb>"
For Each cell As DataGridViewCell In Row.Cells
BodyCorre += "<td >" & cell.Value & "</td>
Next
Next
BodyCorre += "</table>"