Hi
I am getting error - Non-table node initialisation (DIV).
Code
C#
protected void gr_RowDataBound(object sender, GridViewRowEventArgs e)
{
try
{
if (e.Row.RowType == DataControlRowType.Header)
{
e.Row.TableSection = TableRowSection.TableHeader;
}
}
catch
{}
}Thanks
Rajkiran SwainRank #165 · 14.4K reputationPosted Jun 6, 2023, 7:14 AM EDT
By setting the
CssClassproperty of the GridView control, you can apply the desired table-related CSS classes directly to the GridView element.Additionally, please ensure that the
gr_RowDataBoundevent handler method is properly implemented and does not contain any syntax or logical errors.Ramco RamcoRank #462 · 5.4K reputationPosted Jun 6, 2023, 7:16 AM EDT
Hi Rajkiran
It is not showing Gridview as Jquery datatable
Thanks
Vishal JoshiRank #377 · 6.7K reputationPosted Jun 6, 2023, 8:31 AM EDT
The
If you want to use a non-table node, such as a
Another way you can try is to remove
Thanks
Ramco RamcoRank #462 · 5.4K reputationPosted Jun 6, 2023, 8:37 AM EDT
Hi Vishal
I am getting this error - Uncaught TypeError: Cannot read properties of undefined (reading 'mData') (datatables.min.js:102:259) (datatables.min.js:102:214) (AddRecommendedBooks:580:35)
at HTMLTableCellElement.
at Function.each (jquery.min.js:2:2573)
at w.fn.init.each (jquery.min.js:2:1240)
at HTMLTableElement.
at Function.each (jquery.min.js:2:2573)
at w.fn.init.each (jquery.min.js:2:1240)
at w.fn.init.n [as dataTable] (datatables.min.js:95:199)
at h.fn.DataTable (datatables.min.js:177:488)
at HTMLDocument.
at l (jquery.min.js:2:29375)
--------------------------------- $(document).ready(function () { $('#grdPlanning').DataTable(); }); $(document).ready(function () { $("#grdPlanning").prepend($("").append($(this).find("tr:first"))).DataTable(); });Thanks
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts