BlazorTable icon indicating copy to clipboard operation
BlazorTable copied to clipboard

Question: How do I show the item number (index) ?

Open soundar2 opened this issue 5 years ago • 0 comments

In the first column I want to show the item no. For example, first row would would show 1, second row 2 and so on. The last row would obviously show the number of rows in the table. Even if sorting or filtering, this will be same. First row would show 1, last row would show the number of items in the filtered list.

If I don't use this component, I maybe doing: @for (i=0; i< filteredList.Count; i++)

{
  <span>i+1</span>
}

soundar2 avatar Aug 10 '20 06:08 soundar2