public static void ToString(int tableId, long rowNumber, string expected) { var rowId = new RowId(tableId, (int) rowNumber); var s = rowId.ToString(); Assert.AreEqual(expected, s); }
internal string AppendReceiptQueryParameters(string receiptUrl, IPublishedContent content) { if (AddSubmissionInfo == false) { return(receiptUrl); } var collection = HttpUtility.ParseQueryString(string.Empty); collection["sid"] = RowId.ToString(); collection["cid"] = content.Id.ToString(); return(string.Format("{0}?{1}", receiptUrl, collection)); }
/// <summary> /// Set the value of the editing control to the current cell value. /// </summary> /// <param name="rowIndex"></param> /// <param name="initialFormattedValue"></param> /// <param name="dataGridViewCellStyle"></param> public override void InitializeEditingControl(int rowIndex, object initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle) { base.InitializeEditingControl(rowIndex, initialFormattedValue, dataGridViewCellStyle); var txtEdit = DataGridView.EditingControl as DataGridViewTextBoxEditingControl; RowId = 1; if (txtEdit != null) { txtEdit.Text = Value?.ToString() ?? RowId.ToString(); } }
private void BindRolePageMappingList(int aPageNumber) { DataTable dtb = objRolePageMappingListBAL.GetRolePageMappingList(RowId); if (dtb.Rows.Count > 0 && dtb != null) { dtb.Columns.Add("JumpParam"); foreach (DataRow item in dtb.Rows) { item["JumpParam"] = "../Securityprofile/SecurityDetailEdit.aspx?" + URLMessage.Encrypt("action=update&PageMapping=" + item["PageMapping"] + "&SecurityProfile=" + RowId.ToString() + "&Name=" + URLMessage.GetParam("Name", "")); } grdPage.DataSource = dtb; grdPage.DataBind(); grdPage.CurrentPageIndex = aPageNumber > grdPage.PageCount ? 0 : aPageNumber; grdPage.DataBind(); SessionContext.GridPage = grdPage.CurrentPageIndex; msgalert.Visible = false; } else { msgalert.Visible = true; grdPage.Visible = false; } }
public override string ToString() { return(String.Format("{0} - {1}", RowId.ToString(), String.IsNullOrEmpty(Message) ? String.Empty : Message)); }