protected override void RenderStartCell(GridColumn <T> column, GridRowViewData <T> rowData) { string attrs = BuildHtmlAttributes(column.Attributes(rowData)); if (attrs.Length > 0) { attrs = " " + attrs; } var hidden = string.Empty; if (!_firstCellRendered) { hidden = string.Format("<input type=\"hidden\" name=\"{0}.index\" autocomplete=\"off\" value=\"{1}\" />", _collectionName, _currentIndex); } _firstCellRendered = true; RenderText(string.Format("<td{0}>{1}", attrs, hidden)); }