I am trying to add rowindex auto to grid.
My code is:
columns.Add().
Titled("row").
SetWidth(20).
Sortable(true).
Filterable(true).
RenderValueAs(i++.ToString());
columns.Add(m => m.Hotel_Name_Fa).
Titled("name").
SetWidth(50).
Sortable(true).
Filterable(true);
I want this result:
row name
1 name
2 name2
define these in the view at the top
and then in the grid
in your controller