Click here to Skip to main content
15,112,662 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB
Dim strb As New StringBuilder()
        strb.Append("<table id=""tableID"" class=""tableClass""  style=""width=700px; border: solid 1px #336699;""  >")
        strb.Append("<tr>")
        ' strb.Append("<td colspan='" & tb_rowCols & "'></td>")
        Dim header As DataTable = tb_header_col()
        strb.Append("<td style=""display:none""></td>")
        For i As Integer = 1 To header.Rows.Count - 1
            strb.Append("<td style=""background-color:gray;border-style: none; height:25px; color:white; text-align: right;"">" + header.Rows(i)("col_name") & "</td>")
        Next
        strb.Append("</tr>")
        strb.Append("<th style=""display:none""></th>")
        For i As Integer = 1 To header.Rows.Count - 1
            strb.Append("<th style=""text-align: right; color:green;"" class=""tot""></th>")
        Next
        Dim row_value As DataTable = maindt
        For j As Integer = 0 To row_value.Rows.Count - 1
            strb.Append("<tr>")
            strb.Append("<td style=""display:none"" >")
            strb.Append(row_value.Rows(j)("studentid"))
            strb.Append("</td>")
            strb.Append("<td >")
            strb.Append(row_value.Rows(j)("student"))
            strb.Append("</td>")
            For x As Integer = 2 To maindt.Columns.Count - 1
                If IsDBNull(row_value(j)(x)) Then
                    row_value(j)(x) = 0
                End If

                strb.Append("<td width=""60px"">")
                strb.Append("<input id=""Text1"" style=""width: 80px; text-align: right;"" class=""txt"" type=""text"" name='value_" & (x + 1) & "_" & (j + 1) & "_txb' value='" & IIf(row_value(j)(x) = 0, "", row_value(j)(x)) & "' />")
                strb.Append("</td>")
            Next
            strb.Append("</tr>")
        Next
        strb.Append("</table>")
        tableValue = strb.ToString(

)
Posted
Comments
Member 10411056 24-Dec-13 2:18am
   
please give solutions fast as soon as possible
JoCodes 24-Dec-13 2:41am
   
Atleast try to explain what you want here. Just dumping some code and asking for solutions is not a proper way at all.
Member 10411056 24-Dec-13 2:53am
   
somebody pls give the solutins

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900