private void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { // Status string altStatus = string.Empty; string status = e.Row.Cells.FromKey("ChunkStatus").Text; switch (status) { case "M": altStatus = "Missing"; break; //case "R": altStatus="Rejected";break; --Commented for alternate for CR 5096 case "D": altStatus = "Draft"; break; case "F": altStatus = "Final"; break; default: altStatus = string.Empty; break; } e.Row.Cells.FromKey("ChunkStatus").Text = "<img src='/hc_v4/img/S" + status + ".gif' align='center' valign='middle' alt='" + altStatus + "'/>"; // Value if (e.Row.Cells.FromKey("Value").Text == Chunk.BlankValue) { e.Row.Cells.FromKey("Value").Text = Chunk.BlankText; } //Display Edit Link in Container Name string onclick = "ed('" + dg.ClientID + "', " + e.Row.Index.ToString() + ", '" + SessionState.Culture.Code + "', '" + itemId + "')"; e.Row.Cells.FromKey("ContainerName").Text = "<a href='javascript://' onclick=\"" + onclick + "\">" + e.Row.Cells.FromKey("ContainerName").Text + " [" + e.Row.Cells.FromKey("Tag").Text + "]</a>"; }
protected void eventsGrid_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { Infragistics.WebUI.UltraWebGrid.UltraGridCell s = e.Row.Cells.FromKey("Status"); if (s.Text == "F") { for (int i = 0; i < e.Row.Cells.Count; i++) { e.Row.Cells[i].Style.ForeColor = System.Drawing.Color.Red; } } else if (s.Text == "R") { for (int i = 0; i < e.Row.Cells.Count; i++) { e.Row.Cells[i].Style.ForeColor = System.Drawing.Color.Blue; } } //else if (s.Text == "S") //{ // for (int i = 0; i < e.Row.Cells.Count; i++) // { e.Row.Cells[i].Style.ForeColor = System.Drawing.Color.Blue; } //} //s.Value = "<a href= 'eventbrowserdetail.aspx?e=" + e.Row.Cells.FromKey("JobId").Value.ToString() + "' target='jobdetail'>" + s.Text + "</a>"; }
protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { for (int i = 1; i < UltraWebGrid1.Columns.Count; i++) { e.Row.Cells[i].Value += " "; } }
protected void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { e.Row.Cells.FromKey("Level").Text = "[" + e.Row.Cells.FromKey("LevelId").Text + "] " + e.Row.Cells.FromKey("Level").Text; Infragistics.WebUI.UltraWebGrid.UltraGridCell cName = e.Row.Cells.FromKey("Name"); Infragistics.WebUI.UltraWebGrid.UltraGridCell cId = e.Row.Cells.FromKey("TRId"); #region Search colorization string search = txtFilter.Text.Trim(); string cIdText = cId.Text; if (search != string.Empty) { if (cId.Text != null) { if ((cId.Text.ToLower().IndexOf(search.ToLower())) >= 0 || (cName.Text.ToLower().IndexOf(search.ToLower())) >= 0) { cName.Text = Utils.CReplace(cName.Text, search, "<font color=red><b>" + search + "</b></font>", 1); cId.Text = Utils.CReplace(cId.Text, search, "<font color=red><b>" + search + "</b></font>", 1); } else { e.Row.Delete(); } } } #endregion if (r == "2") { cId.Text = "<a href='javascript://' onclick=\"EditTR(" + cIdText + ")\">" + cId.Text + "</a>"; } else { cName.Text = "<a href='../../../redirect.aspx?p=UI/Acquire/qde.aspx&i=" + e.Row.Cells.FromKey("ItemId").Text + "' target='_BLANK'\">" + cName.Text + "</a>"; } }
protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { switch (DataBinder.Eval(e.Data, "status").ToString()) { case "0": e.Row.Cells[7].Value = "未提交审批"; break; case "1": e.Row.Cells[7].Value = "审批完成"; break; case "14": e.Row.Cells[7].Value = "审批拒绝"; break; default: e.Row.Cells[7].Value = "审批中"; break; } switch (DataBinder.Eval(e.Data, "op_type").ToString()) { case "1": e.Row.Cells[4].Value = "8D"; break; case "2": e.Row.Cells[4].Value = "HSF"; break; case "3": e.Row.Cells[4].Value = "异常矫正"; break; case "4": e.Row.Cells[4].Value = "客户投诉"; break; case "5": e.Row.Cells[4].Value = "不良品确认"; break; default: break; } }
protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { switch (DataBinder.Eval(e.Data, "status").ToString()) { case "0": e.Row.Cells[9].Value = "未提交审批"; break; case "1": e.Row.Cells[9].Value = "审批完成"; break; case "14": e.Row.Cells[9].Value = "审批拒绝"; break; default: e.Row.Cells[9].Value = "审批中"; break; } switch (DataBinder.Eval(e.Data, "HSF_Happen_Type").ToString()) { case "1": e.Row.Cells[8].Value = "制品"; break; case "2": e.Row.Cells[8].Value = "制程"; break; case "3": e.Row.Cells[8].Value = "外包"; break; case "4": e.Row.Cells[8].Value = "原物料"; break; case "5": e.Row.Cells[8].Value = "其他"; break; default: e.Row.Cells[8].Value = ""; break; } }
protected void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { Infragistics.WebUI.UltraWebGrid.TemplatedColumn col = (Infragistics.WebUI.UltraWebGrid.TemplatedColumn)e.Row.Cells.FromKey("Select").Column; CheckBox cb = (CheckBox)((Infragistics.WebUI.UltraWebGrid.CellItem)col.CellItems[e.Row.Index]).FindControl("g_sd"); cb.Checked = Convert.ToBoolean(e.Row.Cells.FromKey("IsLinked").Value); }
protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { int[] arrCol = new int[2] { 5, 7 }; double[] arrRate = new double[2]; double dblTmpVal = 0.00; for (int intCol = 0; intCol < arrCol.Length; intCol++) { arrRate[intCol] = Convert.ToDouble(e.Row.Cells[arrCol[intCol]].Value); if (arrRate[intCol] > 100) { e.Row.Cells[arrCol[intCol]].Style.ForeColor = System.Drawing.Color.Blue; } else { e.Row.Cells[arrCol[intCol]].Style.ForeColor = System.Drawing.Color.Red; } } //============================= 증가율처리 double dblARate = (Convert.ToDouble(e.Row.Cells[7].Value) == 0) ? 0 : (Convert.ToDouble(e.Row.Cells[7].Value) - 100); e.Row.Cells[7].Value = dblARate; e.Row.Cells[7].Style.ForeColor = (dblARate >= 0) ? System.Drawing.Color.Blue : System.Drawing.Color.Red; }
protected void eventsGrid_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { if (e.Row.Cells.FromKey("Culture").Value != null) { e.Row.Cells.FromKey("Geography").Value = e.Row.Cells.FromKey("Culture").Value; } else if (e.Row.Cells.FromKey("Country").Value != null) { e.Row.Cells.FromKey("Geography").Value = e.Row.Cells.FromKey("Country").Value; } else if (e.Row.Cells.FromKey("Language").Value != null) { e.Row.Cells.FromKey("Geography").Value = e.Row.Cells.FromKey("Language").Value; } else { e.Row.Cells.FromKey("Geography").Value = HyperCatalog.Shared.SessionState.MasterCulture.Name; } Infragistics.WebUI.UltraWebGrid.UltraGridCell dateCell = e.Row.Cells.FromKey("Date"); dateCell.Value = HyperCatalog.Shared.SessionState.User.GMTTimeZone.ToLocalTime((DateTime)dateCell.Value).ToString(); if (e.Row.Cells.FromKey("ItemDeleted").Text != "1") { Infragistics.WebUI.UltraWebGrid.UltraGridCell cName = e.Row.Cells.FromKey("ItemName"); cName.Text = "<a href='../redirect.aspx?p=UI/Acquire/qde.aspx&i=" + e.Row.Cells.FromKey("ItemId").Text + "'\">" + cName.Text + "</a>"; } }
protected void ugrdKpiList_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { Infragistics.WebUI.UltraWebGrid.TemplatedColumn cCol = (Infragistics.WebUI.UltraWebGrid.TemplatedColumn)e.Row.Band.Columns.FromKey("USE_YN"); System.Web.UI.WebControls.Image objImg = (System.Web.UI.WebControls.Image)((Infragistics.WebUI.UltraWebGrid.CellItem)cCol.CellItems[e.Row.BandIndex]).FindControl("imgUseYn"); objImg.ImageUrl = (e.Row.Cells.FromKey("USE_YN").Value.ToString() == "Y") ? "../images/icon_o.gif" : "../images/icon_x.gif"; //cCol = (TemplatedColumn)e.Row.Band.Columns.FromKey("APPROVAL_STATUS"); //objImg = (Image)((CellItem)cCol.CellItems[e.Row.BandIndex]).FindControl("imgUseYn"); //objImg.ImageUrl = (e.Row.Cells.FromKey("APPROVAL_STATUS").Value.ToString() == "Y") ? // "../images/icon_o.gif" : "../images/icon_x.gif"; cCol = (Infragistics.WebUI.UltraWebGrid.TemplatedColumn)e.Row.Band.Columns.FromKey("APP_STATUS"); objImg = (System.Web.UI.WebControls.Image)((Infragistics.WebUI.UltraWebGrid.CellItem)cCol.CellItems[e.Row.BandIndex]).FindControl("imgApp"); string strImg = (e.Row.Cells.FromKey("APP_STATUS").Value == null) ? "" : e.Row.Cells.FromKey("APP_STATUS").Value.ToString(); MicroBSC.Biz.Common.Biz.Biz_Com_Approval_Info.GetAppImageUrl(strImg); objImg.AlternateText = MicroBSC.Biz.Common.Biz.Biz_Com_Approval_Info.GetAppImageText(strImg); tRow += 1; if (strImg == Biz_Type.app_status_complete) { tCol += 1; } //lblRowCount.Text = tCol.ToString() + " / " + tRow.ToString(); }
private void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { Infragistics.WebUI.UltraWebGrid.UltraGridRow r = e.Row; if (txtFilter.Text.Length > 0) { string filter = txtFilter.Text.Trim().ToLower(); string c; bool keep = false; for (int i = 1; i < 6; i++) { c = r.Cells[i].Text; if (c != null && c.ToLower().IndexOf(filter) >= 0) { keep = true; break; } } if (keep) { UITools.HiglightGridRowFilter(ref r, txtFilter.Text); } else { r.Delete(); } } }
protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { string strSpace = ""; int intLevel = int.Parse(e.Row.Cells.FromKey("DEPT_LEVEL").Value.ToString()); for (int i = 0; i < intLevel; i++) { strSpace += " "; } if (intLevel < 4) { e.Row.Cells.FromKey("DEPT_NAME").Text = "<b>" + strSpace + e.Row.Cells.FromKey("DEPT_NAME").Text + "<b>"; } else { e.Row.Cells.FromKey("DEPT_NAME").Text = " " + strSpace + e.Row.Cells.FromKey("DEPT_NAME").Text; } decimal dWeight = DataTypeUtility.GetToDecimal(e.Row.Cells.FromKey("TOT_WEIGHT").Value); if (dWeight == 100) { e.Row.Cells.FromKey("TOT_WEIGHT").Style.ForeColor = System.Drawing.Color.Blue; } else { e.Row.Cells.FromKey("TOT_WEIGHT").Style.ForeColor = System.Drawing.Color.Red; } }
private void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { if (txtFilter.Text.Length > 0) { Infragistics.WebUI.UltraWebGrid.UltraGridRow r = e.Row; UITools.HiglightGridRowFilter(ref r, txtFilter.Text); } }
private void dgRole_AddRowBatch(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { SM.角色Row dr = sm1.角色.New角色Row(); sm1.角色.Add角色Row(dr); e.Row.DataKey = dr[sm1.角色.PrimaryKey[0]]; e.Row.Cells.FromKey(sm1.角色.PrimaryKey[0].ColumnName).Value = e.Row.DataKey; }
private void dgPermission_AddRowBatch(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { SM.权限模块Row dr = sm1.权限模块.New权限模块Row(); sm1.权限模块.Add权限模块Row(dr); e.Row.DataKey = dr[sm1.权限模块.PrimaryKey[0]]; e.Row.Cells.FromKey(sm1.权限模块.PrimaryKey[0].ColumnName).Value = e.Row.DataKey; }
protected void uwDDL_Filters_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { if (e.Row.Cells.FromKey("LevelName") != null && e.Row.Cells.FromKey("LevelName").Text.Length > 0 && e.Row.Cells.FromKey("Name") != null && e.Row.Cells.FromKey("ItemName") != null) { e.Row.Cells.FromKey("Name").Text = e.Row.Cells.FromKey("Name").Text + ": " + e.Row.Cells.FromKey("ItemName").Text + " [" + e.Row.Cells.FromKey("LevelName").Text + "]"; } }
protected void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { //Display Status logo if (e.Row.Cells.FromKey("Status").Value != null) { e.Row.Cells.FromKey("Status").Style.CssClass = "S" + e.Row.Cells.FromKey("Status"); e.Row.Cells.FromKey("Status").Value = string.Empty; } }
private void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { string filter = txtFilter.Text.Trim(); bool keep = true; if (e.Row.Cells.FromKey("S") != null && e.Row.Cells.FromKey("S").Text == "M") { keep = false; } if (filter.Length > 0) { keep = false; Infragistics.WebUI.UltraWebGrid.CellsCollection cells = e.Row.Cells; foreach (Infragistics.WebUI.UltraWebGrid.UltraGridCell c in cells) { if (!c.Column.Hidden && c.Value != null && c.Text != HyperCatalog.Business.Chunk.BlankValue) { if (c.Text.ToLower().IndexOf(filter.ToLower()) >= 0) { c.Text = Utils.CReplace(c.Text, filter, "<font color=red><b>" + filter + "</b></font>", 1); keep = true; } } } } if (!keep) { e.Row.Delete(); } else { string v = e.Row.Cells.FromKey("V").Text; bool rtl = (bool)e.Row.Cells.FromKey("rtl").Value; string LevelId = "[" + e.Row.Cells.FromKey("L").ToString() + "] "; // Update status string status = e.Row.Cells.FromKey("S").ToString(); e.Row.Cells.FromKey("S").Value = "<img src='/hc_v4/img/S" + status + ".gif'>"; // Update value if culture is in Rtl if (rtl && e.Row.Cells.FromKey("V").Text.Length > 0 && e.Row.Cells.FromKey("V").Text != Chunk.BlankValue) { e.Row.Cells.FromKey("V").Text = "<span class='rtl'>" + UITools.HtmlEncode(v) + "</span>"; } else { e.Row.Cells.FromKey("V").Text = UITools.HtmlEncode(v); } // Update value if ILB if (e.Row.Cells.FromKey("V").Text == Chunk.BlankValue) { e.Row.Cells.FromKey("V").Text = Chunk.BlankText; } e.Row.Cells.FromKey("IN").Text = LevelId + e.Row.Cells.FromKey("IN").Text; } }
protected void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { if (e.Row.Cells.FromKey("ItemNumber").Value != null) { e.Row.Cells.FromKey("ItemName").Text = "[" + e.Row.Cells.FromKey("ItemNumber").Text + "] " + e.Row.Cells.FromKey("ItemName").Text; } e.Row.Cells.FromKey("ItemName").Text = "<a href='redirect.aspx?p=UI/Acquire/qde.aspx&i=" + e.Row.Cells.FromKey("ItemId").Text + "' target='_BLANK'\">" + e.Row.Cells.FromKey("ItemName").Text + "</a>"; //e.Row.Cells.FromKey("NbDays").Text = "[" + e.Row.Cells.FromKey("NbDays").Text + "]"; e.Row.Cells.FromKey("LevelId").Text = "[" + e.Row.Cells.FromKey("LevelId").Text + "]"; }
private void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { // update input type e.Row.Cells.FromKey("InputType").Text = InputFormContainer.GetTypeFromString(e.Row.Cells.FromKey("InputType").Text).ToString(); // update filter if (txtFilter.Text.Length > 0) { Infragistics.WebUI.UltraWebGrid.UltraGridRow r = e.Row; UITools.HiglightGridRowFilter(ref r, txtFilter.Text); } }
private void Message_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { if (!Convert.ToBoolean(e.Row.Cells[6].Value.ToString())) { e.Row.Cells[2].Text = @"<a href=""ShowMessage.aspx?ID=" + e.Row.Cells[1].Text + @"""><font color=""red"">" + e.Row.Cells[2].Text + "</font></a>"; // e.Row.Cells[2].TargetURL=e.Row.Cells[2].Text; } else { e.Row.Cells[2].Text = @"<a href=""ShowMessage.aspx?ID=" + e.Row.Cells[1].Text + @""">" + e.Row.Cells[2].Text + "</a>"; } }
protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { DataRowView dr = (DataRowView)e.Data; DataTable dt = GetTeamInfo(dr["EMP_TEAM"].ToString()); if (dt.Rows.Count > 0) { e.Row.Cells.FromKey("edit").Value = string.Format( "<a href=\"#null\" onclick=\"SetOpenerCtrl('{0}','{1}','{2}','{3}');\"><img src='../images/drafts.gif' border='0'></a>" , dr["EMP_SABUN_T"].ToString(), dt.Rows[0]["SEM_CODE2_NAME"].ToString(), dt.Rows[0]["SEM_CODE3_NAME"].ToString(), dr["EMP_NAME"].ToString()); } }
private void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { if (Convert.ToInt32(e.Row.Cells.FromKey("Created").Value) > 0) { e.Row.Cells.FromKey("Created").Style.CssClass = "hc_success"; e.Row.Cells.FromKey("Created").Style.Font.Bold = true; } if (Convert.ToInt32(e.Row.Cells.FromKey("Updated").Value) == 0) { e.Row.Cells.FromKey("Updated").Style.CssClass = "hc_success"; e.Row.Cells.FromKey("Updated").Style.Font.Bold = true; } }
protected void ugrdTarget_ActiveRowChange(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { intTergetVersion = Convert.ToInt16(e.Row.Cells.FromKey("KPI_TARGET_VERSION_ID").Value.ToString()); txtEnabelReg.Text = (e.Row.Cells.FromKey("ENABLE_REG").Value.ToString() == "Y") ? "등록가능" : "등록불가"; this.SetFormData(); /* 추가일자 : 이천씹년 구월 이씹구일 * 추가작자 : 장동건 * 추가요청 : 성덕여왕 * 추가내용 : 여왕께 여쭤 보시미... * */ this.SetFormData_Detail(); }
protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { switch (DataBinder.Eval(e.Data, "status").ToString()) { case "0": e.Row.Cells[4].Value = "未提交审批"; break; case "1": e.Row.Cells[4].Value = "审批完成"; break; case "14": e.Row.Cells[4].Value = "审批拒绝"; break; default: e.Row.Cells[4].Value = "审批中"; break; } }
protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { int[] arrCol = new int[7] { 1, 2, 3, 4, 5, 6, 7 }; double[] arrRate = new double[7]; double dblTmpVal = 0.00; for (int intCol = 0; intCol < arrCol.Length; intCol++) { arrRate[intCol] = Convert.ToDouble(e.Row.Cells[arrCol[intCol]].Value); e.Row.Cells[arrCol[intCol]].Style.ForeColor = (arrRate[intCol] >= 0) ? System.Drawing.Color.Black : System.Drawing.Color.Red; } }
private void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { bool keep = true; string chunkValue = e.Row.Cells.FromKey("Value").Text; if ((e.Row.Cells.FromKey("ItemSku").Value != null) && (e.Row.Cells.FromKey("ItemSku").Text.Length > 0)) { e.Row.Cells.FromKey("ItemName").Text = e.Row.Cells.FromKey("ItemName").Text + " [" + e.Row.Cells.FromKey("ItemSku").Text + "]"; } if (txtFilter.Text.Length > 0) { string filter = txtFilter.Text.ToLower(); string itemName = e.Row.Cells.FromKey("ItemName").Text.ToLower(); if ((itemName.IndexOf(filter) < 0) && (chunkValue.IndexOf(filter) < 0)) { keep = false; e.Row.Delete(); } else { Infragistics.WebUI.UltraWebGrid.UltraGridRow r = e.Row; UITools.HiglightGridRowFilter(ref r, txtFilter.Text); } } if (keep) { e.Row.Cells.FromKey("ChunkStatus").Text = "<img src='/hc_v4/img/S" + e.Row.Cells.FromKey("ChunkStatus").Text.Substring(0, 1) + ".gif'>"; if (chunkValue == HyperCatalog.Business.Chunk.BlankValue) { e.Row.Cells.FromKey("Value").Text = HyperCatalog.Business.Chunk.BlankText; e.Row.Cells.FromKey("Value").Style.CustomRules = string.Empty; } else { e.Row.Cells.FromKey("Value").Text = UITools.HtmlEncode(chunkValue).Replace(Environment.NewLine, "<br/>"); } if (IsRegion(CultureList.SelectedValue.ToString())) { e.Row.Cells.FromKey("ItemName").Text = "<a href='../../../redirect.aspx?p=UI/Acquire/qde.aspx&c=" + CultureList.SelectedValue.ToString() + "&i=" + e.Row.Cells.FromKey("ItemId").Text + "' target='_BLANK'\">" + e.Row.Cells.FromKey("ItemName").Text + "</a>"; } else { e.Row.Cells.FromKey("ItemName").Text = "<a href='../../../redirect.aspx?p=UI/Globalize/QDETranslate.aspx&c=" + CultureList.SelectedValue.ToString() + "&i=" + e.Row.Cells.FromKey("ItemId").Text + "' target='_BLANK'\">" + e.Row.Cells.FromKey("ItemName").Text + "</a>"; } } }
protected void ultraLegend_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { if (e.Row.Cells.FromKey("VIEW_REF_ID").Value.ToString() == "0") { e.Row.Style.Font.Bold = true; e.Row.Cells.FromKey("SCORE").Style.ForeColor = System.Drawing.Color.Red; e.Row.Cells.FromKey("WEIGHT").Style.ForeColor = System.Drawing.Color.Red; } else { e.Row.Cells.FromKey("VIEW_NAME").Value = " " + e.Row.Cells.FromKey("VIEW_NAME").Value; } e.Row.Cells.FromKey("DASH").Value = "/"; }
protected void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { Trace.Warn("Users", " ->dg_InitializeRow"); Infragistics.WebUI.UltraWebGrid.UltraGridCell c; c = e.Row.Cells[_LastLoginPos]; if (c.Value != null && c.Value != DBNull.Value) { c.Value = HyperCatalog.Shared.SessionState.User.FormatUtcDate(Convert.ToDateTime(c.Value)); } if (txtFilter.Text != string.Empty) { Infragistics.WebUI.UltraWebGrid.UltraGridRow r = e.Row; UITools.HiglightGridRowFilter(ref r, txtFilter.Text); } }
private void dg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { #region Display full name of CultureCode using (CultureList list = HyperCatalog.Business.Culture.GetAll("CultureTypeId=" + HyperCatalog.Business.Culture.GetCultureTypeFromEnum(CultureType.Locale))) { for (int i = 0; i < list.Count; i++) { if (list[i].Code == e.Row.Cells.FromKey("Locale").Text) { e.Row.Cells.FromKey("Locale").Text = "[" + e.Row.Cells.FromKey("Locale").Text + "] " + list[i].Name; } } } #endregion }