private void radGridMembers_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e) { CurrentMemberRowSelection = ""; if (e.RowIndex >= 0) { Telerik.WinControls.UI.GridViewRowInfo row = this.radGridMembers.Rows[e.RowIndex]; row = this.radGridMembers.Rows[e.RowIndex]; CurrentMemberRowSelection = row.Cells["OR Number"].Value.ToString(); } }
private void radGridAllMembers_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e) { globalconfig.selection = ""; if (e.RowIndex >= 0) { Telerik.WinControls.UI.GridViewRowInfo row = this.radGridAllMembers.Rows[e.RowIndex]; row = this.radGridAllMembers.Rows[e.RowIndex]; selected = row.Cells["Student Number"].Value.ToString(); } }
private void radGridParticipants_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e) { selected = ""; if (e.RowIndex >= 0) { Telerik.WinControls.UI.GridViewRowInfo row = this.radGridParticipants.Rows[e.RowIndex]; row = this.radGridParticipants.Rows[e.RowIndex]; selected = row.Cells["Student Number"].Value.ToString(); selected = ""; } }
public Field(Telerik.WinControls.UI.GridViewRowInfo row) { this.ID = row.Cells["ID"].Value.IsNullOrEmpty() ? (int?)null : int.Parse(row.Cells["ID"].Value.ToString()); this.Label = row.Cells["Label"].Value.ToString(); this.FieldName = row.Cells["FieldName"].Value.IsNullOrEmpty() ? null : row.Cells["FieldName"].Value.ToString(); this.FieldTypeCode = int.Parse(row.Cells["FieldTypeCode"].Value.ToString()); this.FieldType = row.Cells["FieldType"].Value.ToString(); this.StatusCode = int.Parse(row.Cells["StatusCode"].Value.ToString()); this.Status = row.Cells["Status"].Value.ToString(); this.BoxTypeCode = int.Parse(row.Cells["BoxTypeCode"].Value.ToString()); this.BoxType = row.Cells["BoxType"].Value.ToString(); this.AutoComplete = bool.Parse(row.Cells["AutoComplete"].Value.ToString()); this.MinLength = row.Cells["MinLength"].Value.IsNullOrEmpty() ? (int?)null : int.Parse(row.Cells["MinLength"].Value.ToString()); this.MaxLength = row.Cells["MaxLength"].Value.IsNullOrEmpty() ? (int?)null : int.Parse(row.Cells["MaxLength"].Value.ToString()); this.MinValue = row.Cells["MinValue"].Value.IsNullOrEmpty() ? (double?)null : double.Parse(row.Cells["MinValue"].Value.ToString()); this.MaxValue = row.Cells["MaxValue"].Value.IsNullOrEmpty() ? (double?)null : double.Parse(row.Cells["MaxValue"].Value.ToString()); this.ParentID = row.Cells["ParentID"].Value.IsNullOrEmpty() ? (int?)null : int.Parse(row.Cells["ParentID"].Value.ToString()); this.DefaultValue = (row.Cells["DefaultValue"].Value ?? "").ToString(); this.Index = row.Index + 1; this.SubFields = (row.Tag != null && row.Tag is List <Field>) ? row.Tag as List <Field> : new List <Field>(); }