protected virtual void SetIndexValue(HtmlInputRadioButton radioSelector) { GridViewRow row = radioSelector.NamingContainer as GridViewRow; if (row != null) { radioSelector.Value = row.RowIndex.ToString(); } }