4
Answers

Datatable error

Photo of Ramco Ramco

Ramco Ramco

1y
499
1

Hi

  I am getting error - Non-table node initialisation (DIV).

<div class="table table-bordered table-hover datatable-highlight">
    <asp:GridView ID="grdPlanning" class="table table-bordered" runat="server"  OnRowDataBound="gr_RowDataBound" AutoGenerateColumns="true">
    </asp:GridView>
</div>
protected void gr_RowDataBound(object sender, GridViewRowEventArgs e)
{
    try
    {
        if (e.Row.RowType == DataControlRowType.Header)
        {            
            e.Row.TableSection = TableRowSection.TableHeader;
        }
    }
    catch
    {}
}

Thanks

Answers (4)