View Full Version : How to add Serial No. to first column of specific Table only
dennis123
10-18-2017, 07:33 AM
I have many tables on dashboard also I have fullCalender(fullCalender uses table on UI) on dashboard. All I need is to have serial number in first column of specific table only, it can be identified by either id or class,
<style>
table { counter-reset: Serial; }
table { border-collapse: separate; }
tr td:first-child:before { counter-increment: Serial; content: counter(Serial).; }
</style>
but it give serial numbers to all the table that exists on UI including fullCalender.
arianagrand
02-22-2018, 05:04 AM
I accomplished it using below css code,
<style>
.serialTable { counter-reset: Serial; }
.serialTable { border-collapse: separate; }
.serialTable tr td:first-child:before { counter-increment: Serial; content: counter(Serial); }
</style>
smmexpertss
02-23-2018, 07:13 AM
you can try this.
<style>
table { counter-reset: Serial; }
table { border-collapse: separate; }
tr td:first-child:before { counter-increment: Serial; content: counter(Serial).; }
</style>
davidsmith21
02-24-2018, 02:45 AM
In we compelling reason with embed a table with one section and one hundred rows: Position your cursor the place you have any desire those table. Click those embed tab. Then, decide embed table from those table dropdown in the Tables assembly. In the coming about dialog, enter 1 in the number from claiming Columns field What's more 100 in the number of Rows field.
Ritika gosh
03-09-2018, 02:10 AM
Use this code, hope it will work for you:
<asp:TemplateField HeaderText="IndexNo.">
<ItemTemplate>
<%# Container.DataItemIndex + 1 %>
</ItemTemplate>
</asp:TemplateField> in the gridview
Powered by vBulletin® Version 4.2.4 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.