private void OnRowDataBound(Object sender, GridViewRowEventArgs e) { if (e.Row.DataItem == null || e.Row.DataItem.GetType() != typeof(DataRowView)) { return; } if (e.Row.RowType == DataControlRowType.DataRow) { if (e.Row.Cells[0].ColumnSpan == this.extenderGrid.Columns.Count) { return; } else { foreach (string controlID in this.ControlIDLists) { Control c = GridViewHelper.FindControlInRow(controlID, e.Row); if (c != null) { SaveDataToControl(c, (DataRowView)(e.Row.DataItem)); } } } } }