How can I get the RowIndex when I add row dynamically or while binding it to DataSource?
Can anybody please suggest?
I am trying to add CustomAttribute in following way
col.Field("Name").HeaderText("Name").Width(90).CustomAttributes(custom => { custom.AddAttribute("name", "'{{ :RowIndex }}'"); }).Add();
TIA Manoj