Hi
I am getting error - Non-table node initialisation (DIV).
protected void gr_RowDataBound(object sender, GridViewRowEventArgs e)
{
try
{
if (e.Row.RowType == DataControlRowType.Header)
{
e.Row.TableSection = TableRowSection.TableHeader;
}
}
catch
{}
}
Thanks
Ramco RamcoPosted Jun 6, 2023, 12:37 PM
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)
Thanks
Vishal JoshiPosted Jun 6, 2023, 12:31 PM
The
If you want to use a non-table node, such as a
Another way you can try is to remove
Thanks
Ramco RamcoPosted Jun 6, 2023, 11:16 AM
Hi Rajkiran
It is not showing Gridview as Jquery datatable
Thanks
Rajkiran SwainPosted Jun 6, 2023, 11:14 AM
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.