public static bool zIsValidSelection(this GridView grdValidSelect, Label lblSetId, string CheckBox, string ColumnName) { int SelectedCount = 0; int?SetId = null; foreach (GridViewRow gvrow in grdValidSelect.Rows) { CheckBox chk = (CheckBox)gvrow.FindControl(CheckBox); if (chk.Checked) { SetId = Convert.ToInt32(gvrow.Cells[CU.GetColumnIndexByName(grdValidSelect, ColumnName)].Text); SelectedCount++; if (SelectedCount >= 2) { break; } } } if (SelectedCount == 1) { lblSetId.Text = SetId.ToString(); } else if (SelectedCount == 0) { CU.ZMessage(BOL.eMsgType.Error, string.Empty, "Please Select One Record."); return(false); } else { CU.ZMessage(BOL.eMsgType.Error, string.Empty, "You Can Select Only One Record At A Time."); return(false); } return(true); }
protected void grdPriceList_OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (!IsAddEdit.HasValue) { IsAddEdit = CU.GetAuthority(CU.GetUsersId(), eAuthority.ManagePriceList).IsAddEdit; } if (IsAddEdit.Value) { e.Row.Attributes["ondblclick"] = Page.ClientScript.GetPostBackClientHyperlink(grdPriceList, "Select$" + e.Row.RowIndex); } if (Convert.ToInt32(e.Row.Cells[CU.GetColumnIndexByName(grdPriceList, CS.eStatus)].Text) != (int)eStatus.Active) { e.Row.Attributes["class"] = "GridDesableRow "; } DataRowView dataItem = (DataRowView)e.Row.DataItem; var lnkEditPriceList = e.Row.FindControl("lnkEditPriceList") as LinkButton; var ltrPriceList = e.Row.FindControl("ltrPriceList") as Literal; var aPriceListId = e.Row.FindControl("aPriceListId") as HtmlAnchor; lnkEditPriceList.Visible = IsAddEdit.Value; ltrPriceList.Visible = !IsAddEdit.Value; lnkEditPriceList.Text = ltrPriceList.Text = dataItem[CS.PriceListName].ToString(); lnkEditPriceList.CommandArgument = dataItem[CS.PriceListId].ToString(); aPriceListId.InnerText = dataItem[CS.PriceListId].ToString().Encrypt(); aPriceListId.HRef = "SearchProduct.aspx?pl=" + aPriceListId.InnerText + "&" + CS.OrganizationId.Encrypt() + "=" + CU.GetOrganizationId().ToString().Encrypt(); } }
protected void grdCourier_OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (!IsAddEdit.HasValue) { IsAddEdit = CU.GetAuthority(CU.GetUsersId(), eAuthority.ManageCourier).IsAddEdit; } if (IsAddEdit.Value) { e.Row.Attributes["ondblclick"] = Page.ClientScript.GetPostBackClientHyperlink(grdCourier, "Select$" + e.Row.RowIndex); } if (Convert.ToInt32(e.Row.Cells[CU.GetColumnIndexByName(grdCourier, CS.eStatus)].Text) != (int)eStatus.Active) { e.Row.Attributes["class"] = "GridDesableRow "; } DataRowView dataItem = (DataRowView)e.Row.DataItem; var lnkEditCourier = e.Row.FindControl("lnkEditCourier") as LinkButton; var ltrCourier = e.Row.FindControl("ltrCourier") as Literal; lnkEditCourier.Visible = IsAddEdit.Value; ltrCourier.Visible = !IsAddEdit.Value; lnkEditCourier.Text = ltrCourier.Text = dataItem[CS.CourierName].ToString() + (dataItem[CS.IsPost].zToInt() == (int)eYesNo.Yes ? "*" : string.Empty); lnkEditCourier.CommandArgument = dataItem[CS.CourierId].ToString(); } }
protected void grdCustomer_OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes["ondblclick"] = Page.ClientScript.GetPostBackClientHyperlink(grdCustomer, "Select$" + e.Row.RowIndex); if (Convert.ToInt32(e.Row.Cells[CU.GetColumnIndexByName(grdCustomer, CS.eStatus)].Text) != (int)eStatus.Active) { e.Row.Attributes["class"] = "GridDesableRow "; } DataRowView dataItem = (DataRowView)e.Row.DataItem; var lnkCustomer = e.Row.FindControl("lnkCustomer") as LinkButton; var lnkWhatsAppNo = e.Row.FindControl("lnkWhatsAppNo") as LinkButton; var lnkMobile = e.Row.FindControl("lnkMobile") as LinkButton; lnkWhatsAppNo.Text = dataItem[CS.WhatsAppNo].ToString(); lnkWhatsAppNo.PostBackUrl = "tel:" + dataItem[CS.WhatsAppNo].ToString(); lnkMobile.Text = dataItem[CS.MobileNo].ToString(); lnkMobile.PostBackUrl = "tel:" + dataItem[CS.MobileNo].ToString(); lnkCustomer.Text = dataItem[CS.Name].ToString(); lnkCustomer.CommandArgument = dataItem[CS.CustomerId].ToString(); lnkCustomer.Attributes.Add("controlid", dataItem[CS.CustomerId].ToString()); } }
protected void grdService_OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (!IsAddEdit.HasValue) { IsAddEdit = CU.GetAuthority(CU.GetUsersId(), eAuthority.ManageCountry).IsAddEdit; } if (IsAddEdit.Value) { e.Row.Attributes["ondblclick"] = Page.ClientScript.GetPostBackClientHyperlink(grdService, "Select$" + e.Row.RowIndex); } if (Convert.ToInt32(e.Row.Cells[CU.GetColumnIndexByName(grdService, CS.eStatus)].Text) != (int)eStatus.Active) { e.Row.Attributes["class"] = "GridDesableRow "; } DataRowView dataItem = (DataRowView)e.Row.DataItem; var lnkEditService = e.Row.FindControl("lnkEditService") as LinkButton; var ltrService = e.Row.FindControl("ltrService") as Literal; var lblServiceDetail = e.Row.FindControl("lblServiceDetail") as Label; lnkEditService.Visible = IsAddEdit.Value; ltrService.Visible = !IsAddEdit.Value; lnkEditService.Text = ltrService.Text = dataItem[CS.Pincode].ToString(); lnkEditService.CommandArgument = dataItem[CS.ServiceAvailabilityId].ToString(); lblServiceDetail.Text = dataItem[CS.CityName].ToString() + ", " + dataItem[CS.StateName].ToString() + ", " + dataItem[CS.CountryName].ToString(); } }
protected void grdOrganization_OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (!IsAddEdit.HasValue) { IsAddEdit = CU.GetAuthority(CU.GetUsersId(), eAuthority.Organization).IsAddEdit; } if (IsAddEdit.Value) { e.Row.Attributes["ondblclick"] = Page.ClientScript.GetPostBackClientHyperlink(grdOrganization, "Select$" + e.Row.RowIndex); } if (Convert.ToInt32(e.Row.Cells[CU.GetColumnIndexByName(grdOrganization, CS.eStatus)].Text) != (int)eStatus.Active) { e.Row.Attributes["class"] = "GridDesableRow "; } DataRowView dataItem = (DataRowView)e.Row.DataItem; var lnkEditOrganization = e.Row.FindControl("lnkEditOrganization") as LinkButton; var ltrOrganization = e.Row.FindControl("ltrOrganization") as Literal; lnkEditOrganization.Visible = IsAddEdit.Value; ltrOrganization.Visible = !IsAddEdit.Value; lnkEditOrganization.Text = ltrOrganization.Text = dataItem[CS.OrganizationName].ToString(); lnkEditOrganization.CommandArgument = dataItem[CS.OrganizationId].ToString(); } }
protected void grdCountry_OnSelectedIndexChanged(object sender, EventArgs e) { lblCountryId.Text = grdCountry.Rows[grdCountry.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdCountry, CS.CountryId)].Text; if (CU.GetAuthority(CU.GetUsersId(), eAuthority.ManageState).IsView) { Response.Redirect("ManageState.aspx?" + CS.CountryId.Encrypt() + "=" + lblCountryId.Text.Encrypt(), true); } lnkEdit_OnClick(null, null); }
protected void grdState_OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (!IsAddEdit.HasValue) { IsAddEdit = CU.GetAuthority(CU.GetUsersId(), eAuthority.ManageState).IsAddEdit; } if (!IsViewDestination.HasValue) { IsViewDestination = CU.GetAuthority(CU.GetUsersId(), eAuthority.ManageCity).IsView; } if (!IsAddEditCountry.HasValue) { IsAddEditCountry = CU.GetAuthority(CU.GetUsersId(), eAuthority.ManageCountry).IsAddEdit; } if (IsAddEdit.Value || IsViewDestination.Value) { e.Row.Attributes["ondblclick"] = Page.ClientScript.GetPostBackClientHyperlink(grdState, "Select$" + e.Row.RowIndex); } if (Convert.ToInt32(e.Row.Cells[CU.GetColumnIndexByName(grdState, CS.eStatus)].Text) != (int)eStatus.Active) { e.Row.Attributes["class"] = "GridDesableRow "; } #region Country DataRowView dataItem = (DataRowView)e.Row.DataItem; var lnkEditCountry = e.Row.FindControl("lnkEditCountry") as LinkButton; var ltrCountry = e.Row.FindControl("ltrCountry") as Literal; lnkEditCountry.Visible = IsAddEditCountry.Value; ltrCountry.Visible = !IsAddEditCountry.Value; lnkEditCountry.Text = ltrCountry.Text = dataItem[CS.CountryName].ToString(); lnkEditCountry.CommandArgument = dataItem[CS.CountryId].ToString(); #endregion #region State var lnkEditState = e.Row.FindControl("lnkEditState") as LinkButton; var ltrState = e.Row.FindControl("ltrState") as Literal; lnkEditState.Visible = IsAddEdit.Value; ltrState.Visible = !IsAddEdit.Value; lnkEditState.Text = ltrState.Text = dataItem[CS.StateName].ToString(); lnkEditState.CommandArgument = dataItem[CS.StateId].ToString(); #endregion } }
protected void grdState_OnSelectedIndexChanged(object sender, EventArgs e) { lblStateId.Text = grdState.Rows[grdState.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdState, CS.StateId)].Text; if (CU.GetAuthority(CU.GetUsersId(), eAuthority.ManageCity).IsView) { Response.Redirect("ManageCity.aspx?" + CS.StateId.Encrypt() + "=" + lblStateId.Text.Encrypt()); } else { lnkEdit_OnClick(null, null); } }
public static System.Collections.Generic.List <int> zIsValidSelection(this GridView grdValidSelect, string CheckBox, string ColumnName) { var lstSelectRow = new System.Collections.Generic.List <int>(); foreach (GridViewRow gvrow in grdValidSelect.Rows) { CheckBox chk = (CheckBox)gvrow.FindControl(CheckBox); if (chk.Checked) { lstSelectRow.Add(Convert.ToInt32(gvrow.Cells[CU.GetColumnIndexByName(grdValidSelect, ColumnName)].Text)); } } return(lstSelectRow); }
protected void grdOnlineCourier_OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes["ondblclick"] = Page.ClientScript.GetPostBackClientHyperlink(grdOnlineCourier, "Select$" + e.Row.RowIndex); if (Convert.ToInt32(e.Row.Cells[CU.GetColumnIndexByName(grdOnlineCourier, CS.eStatus)].Text) != (int)eStatus.Active) { e.Row.Attributes["class"] = "GridDesableRow "; } DataRowView dataItem = (DataRowView)e.Row.DataItem; var lnkEditOnlineCourier = e.Row.FindControl("lnkEditOnlineCourier") as LinkButton; var lblOnlineCourierDate = e.Row.FindControl("lblOnlineCourierDate") as Label; var lblPaymentMade = e.Row.FindControl("lblPaymentMade") as Label; var lblPaymentRecived = e.Row.FindControl("lblPaymentRecived") as Label; var lblTotalOrder = e.Row.FindControl("lblTotalOrder") as Label; var lblTotalQuantity = e.Row.FindControl("lblTotalQuantity") as Label; var lblTotalAmount = e.Row.FindControl("lblTotalAmount") as Label; var lblTotalDelOrder = e.Row.FindControl("lblTotalDelOrder") as Label; var lblTotalDelQuantity = e.Row.FindControl("lblTotalDelQuantity") as Label; var lblTotalDelAmount = e.Row.FindControl("lblTotalDelAmount") as Label; lnkEditOnlineCourier.Text = dataItem[CS.Name].ToString(); lnkEditOnlineCourier.CommandArgument = dataItem[CS.OnlineCourierId].ToString(); lblOnlineCourierDate.Text = Convert.ToDateTime(dataItem[CS.Date]).ToString(CS.ddMMyyyy); lblPaymentMade.Text = dataItem[CS.PaymentMade].ToString(); lblPaymentRecived.Text = dataItem[CS.PaymentRecived].ToString(); lblTotalOrder.Text = "Order: " + dataItem[CS.TotalOrder].ToString(); lblTotalQuantity.Text = "Quantity: " + dataItem[CS.TotalQuantity].ToString(); lblTotalAmount.Text = "Amount: " + dataItem[CS.TotalAmount].ToString(); lblTotalDelOrder.Text = "Order: " + dataItem["TotalDelOrder"].ToString(); lblTotalDelQuantity.Text = "Quantity: " + dataItem["TotalDelQuantity"].ToString(); lblTotalDelAmount.Text = "Amount: " + dataItem["TotalDelAmount"].ToString(); } }
protected void grdCallHistory_OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (!IsAddEdit.HasValue) { IsAddEdit = CU.GetAuthority(CU.GetUsersId(), eAuthority.ManageCallHistory).IsAddEdit; } if (IsAddEdit.Value) { e.Row.Attributes["ondblclick"] = Page.ClientScript.GetPostBackClientHyperlink(grdCallHistory, "Select$" + e.Row.RowIndex); } if (Convert.ToInt32(e.Row.Cells[CU.GetColumnIndexByName(grdCallHistory, CS.eStatus)].Text) != (int)eStatus.Active) { e.Row.Attributes["class"] = "GridDesableRow "; } DataRowView dataItem = (DataRowView)e.Row.DataItem; string CallDirection = "<i title='Incoming' class='fa fa-arrow-circle-o-down iIncoming'></i>"; if (dataItem[CS.eCallDirection].zToInt() == (int)eCallDirection.Outgoing) { CallDirection = "<i title='Outgoing' class='fa fa-arrow-circle-o-up iOutgoing'></i>"; } var ltrMobileNo = e.Row.FindControl("ltrMobileNo") as Literal; var ltrTime = e.Row.FindControl("ltrTime") as Literal; var ltrAudioTag = e.Row.FindControl("ltrAudioTag") as Literal; var aDownloadRecording = e.Row.FindControl("aDownloadRecording") as HtmlAnchor; ltrMobileNo.Text = CallDirection + " " + dataItem[CS.MobileNo].ToString(); ltrTime.Text = Convert.ToDateTime(dataItem[CS.Time]).ToString("dd MMM yy HH:mm") + " (" + new TimeSpan(0, 0, 0, dataItem[CS.Duration].zToInt().Value).ToString() + ")"; string FilePath = CU.GetFilePath(false, ePhotoSize.Original, eFolder.CallRecording, dataItem[CS.CallHistoryId].ToString(), dataItem[CS.Extension].ToString()).Replace("~/", ""); aDownloadRecording.HRef = FilePath; aDownloadRecording.Attributes.Add("download", dataItem[CS.MobileNo].ToString() + "-" + Convert.ToDateTime(dataItem[CS.Time]).ToString("ddMMMyyHHmm") + "-" + dataItem[CS.Duration] + "s" + dataItem[CS.Extension].ToString()); ltrAudioTag.Text = "<audio controlsList='nodownload' controls><source src='" + FilePath + "' type='audio/" + dataItem[CS.Extension].ToString().Replace(".", "") + "'>Your browser does not support the audio element.</audio>"; } }
protected void grdWallet_OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (!IsAddEdit.HasValue) { IsAddEdit = CU.GetAuthority(CU.GetUsersId(), eAuthority.ManageWallet).IsAddEdit; } if (IsAddEdit.Value) { e.Row.Attributes["ondblclick"] = Page.ClientScript.GetPostBackClientHyperlink(grdWallet, "Select$" + e.Row.RowIndex); } if (Convert.ToInt32(e.Row.Cells[CU.GetColumnIndexByName(grdWallet, CS.eStatus)].Text) != (int)eStatus.Active) { e.Row.Attributes["class"] = "GridDesableRow "; } DataRowView dataItem = (DataRowView)e.Row.DataItem; var ltrTransactionId = e.Row.FindControl("ltrTransactionId") as Literal; var lblTransactionAmountDebit = e.Row.FindControl("lblTransactionAmountDebit") as Label; var lblTransactionAmountCredit = e.Row.FindControl("lblTransactionAmountCredit") as Label; var lblBalance = e.Row.FindControl("lblBalance") as Label; string Amount = String.Format("{0:n}", dataItem[CS.Amount].zToDecimal().Value).Replace(".00", "") + " Rs."; if ((eTransactionDirection)dataItem[CS.eDirection].zToInt() == eTransactionDirection.Debit) { lblTransactionAmountDebit.Text = Amount; } else { lblTransactionAmountCredit.Text = Amount; } lblBalance.Text = String.Format("{0:n}", dataItem[CS.CurrentBalance].zToDecimal().Value).Replace(".00", "") + " Rs."; ltrTransactionId.Text = dataItem[CS.CashTransactionId].ToString(); } }
protected void grdUser_OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes["ondblclick"] = Page.ClientScript.GetPostBackClientHyperlink(grdUser, "Select$" + e.Row.RowIndex); if (Convert.ToInt32(e.Row.Cells[CU.GetColumnIndexByName(grdUser, CS.eStatus)].Text) != (int)eStatus.Active) { e.Row.Attributes["class"] = "GridDesableRow "; } DataRowView dataItem = (DataRowView)e.Row.DataItem; var lnkMobile = e.Row.FindControl("lnkMobile") as LinkButton; lnkMobile.Text = "(" + dataItem[CS.MobileNo] + ")"; lnkMobile.PostBackUrl = "tel:" + dataItem[CS.MobileNo]; string Contacts = string.Empty; var drUserContact = dtContact.Select(CS.ParentId + " = " + dataItem[CS.UsersId].ToString()); foreach (var drContact in drUserContact) { if (!drContact[CS.ContactName].zIsNullOrEmpty() || !drContact[CS.ContactText].zIsNullOrEmpty()) { Contacts += drContact[CS.ContactName] + "(<a class='fontblue' href='tel:" + drContact[CS.ContactText] + "'>" + drContact[CS.ContactText] + "</a>)</br>"; } } e.Row.Cells[CU.GetColumnIndexByName(grdUser, "Contact")].Text = Contacts; var lnkUser = e.Row.FindControl("lnkUser") as LinkButton; lnkUser.Text = dataItem[CS.Name].ToString(); lnkUser.CommandArgument = dataItem[CS.UsersId].ToString(); lnkUser.Attributes.Add("controlid", dataItem[CS.UsersId].ToString()); if (dataItem[CS.DesignationName].ToString().ToLower().Contains("admin")) { lnkUser.Text += "*"; } } }
protected void grdService_OnSelectedIndexChanged(object sender, EventArgs e) { lblServiceAvailabilityId.Text = grdService.Rows[grdService.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdService, CS.ServiceAvailabilityId)].Text; lnkEdit_OnClick(null, null); }
protected void grdOnlineCourier_OnSelectedIndexChanged(object sender, EventArgs e) { lblOnlineCourierId.Text = grdOnlineCourier.Rows[grdOnlineCourier.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdOnlineCourier, CS.OnlineCourierId)].Text; SetControl(eControl.OnlineCourierValue); }
protected void grdUser_OnSelectedIndexChanged(object sender, EventArgs e) { txtUsersId.Text = grdUser.Rows[grdUser.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdUser, CS.UsersId)].Text; lnkEdit_OnClick(null, null); }
protected void grdPortal_OnSelectedIndexChanged1(object sender, EventArgs e) { lblPortalId.Text = grdPortal.Rows[grdPortal.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdPortal, CS.PortalId)].Text; lnkEdit_OnClick(null, null); }
protected void grdDesignation_OnSelectedIndexChanged(object sender, EventArgs e) { lblDesignationId.Text = grdDesignation.Rows[grdDesignation.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdDesignation, CS.DesignationId)].Text; //Response.Redirect("ManageState.aspx?" + CS.DesignationId.Encrypt() + "=" + lblDesignationId.Text.Encrypt()); lnkEdit_OnClick(null, null); }
protected void grdArea_OnSelectedIndexChanged(object sender, EventArgs e) { lblAreaId.Text = grdArea.Rows[grdArea.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdArea, CS.AreaId)].Text; lnkEdit_OnClick(null, null); }
protected void grdBankAccount_OnSelectedIndexChanged(object sender, EventArgs e) { lblBankAccountId.Text = grdBankAccount.Rows[grdBankAccount.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdBankAccount, CS.BankAccountId)].Text; lnkEdit_OnClick(null, null); }
protected void grdItemAdjustment_OnSelectedIndexChanged(object sender, EventArgs e) { lblItemAdjustmentId.Text = grdItemAdjustment.Rows[grdItemAdjustment.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdItemAdjustment, CS.ItemAdjustmentId)].Text; SetControl(eControl.ItemAdjustmentDetail); }
protected void grdVariant_OnSelectedIndexChanged(object sender, EventArgs e) { lblVariantId.Text = grdVariant.Rows[grdVariant.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdVariant, CS.VariantId)].Text; SetControl(eControl.VariantValue); }
protected void grdCourier_OnSelectedIndexChanged(object sender, EventArgs e) { lblCourierId.Text = grdCourier.Rows[grdCourier.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdCourier, CS.CourierId)].Text; lnkShippingCharge_OnClick(null, null); }
protected void grdVariantValue_OnSelectedIndexChanged(object sender, EventArgs e) { lblVariantValueId.Text = grdVariantValue.Rows[grdVariantValue.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdVariantValue, CS.VariantValueId)].Text; lnkEditValue_OnClick(null, null); }
protected void grdOrganization_OnSelectedIndexChanged(object sender, EventArgs e) { lblOrganizationId.Text = grdOrganization.Rows[grdOrganization.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdOrganization, CS.OrganizationId)].Text; lnkEdit_OnClick(null, null); }
protected void grdOrderSource_SelectedIndexChanged(object sender, EventArgs e) { lblOrderSourceId.Text = grdOrderSource.Rows[grdOrderSource.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdOrderSource, CS.OrderSourceId)].Text; lnkEdit_OnClick(null, null); }
protected void grdCallHistory_OnSelectedIndexChanged(object sender, EventArgs e) { lblCallHistoryId.Text = grdCallHistory.Rows[grdCallHistory.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdCallHistory, CS.CallHistoryId)].Text; lnkEdit_OnClick(null, null); }
protected void grdVendor_SelectedIndexChanged(object sender, EventArgs e) { lblVendorId.Text = grdVendor.Rows[grdVendor.SelectedRow.RowIndex].Cells[CU.GetColumnIndexByName(grdVendor, CS.VendorId)].Text; lnkEdit_OnClick(null, null); }