Maharudra Gadekar

Maharudra Gadekar

  • 1.4k
  • 367
  • 83k

How to add autogenerated column i.e Sr.No in mvc grid in mvc

Nov 3 2016 6:49 AM
Hello,
 
I am using mvc grid but i want add serail number of grid in autogerated same like as asp.net grid i.e (<asp:Label ID="lblRowNumber" Text='<%# Container.DataItemIndex + 1 %>' runat="server" />)
 
How is it possible 
 
please help me
 
this is my below code
 
 
Thanks in advance 

Answers (4)