• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# WebControls.GridViewSelectEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Web.UI.WebControls.GridViewSelectEventArgs的典型用法代码示例。如果您正苦于以下问题:C# GridViewSelectEventArgs类的具体用法?C# GridViewSelectEventArgs怎么用?C# GridViewSelectEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



GridViewSelectEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了GridViewSelectEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: GridView1_SelectedIndexChanged2

        protected void GridView1_SelectedIndexChanged2(object sender, GridViewSelectEventArgs e)
        {
            Session["schdid"] = grdview2.Rows[e.NewSelectedIndex].Cells[6].Text;

            //sqlquery = "	SELECT Schd.Schd_ID, Schd.SiteID, UN.Name, S.Sites, Schd.Status,Schd.VisitDate,"
            //+ "S.City_or_location,s.City,s.Site_Address,s.State "
            //+ "FROM Scheduling Schd JOIN UserNames UN "
            //+ "ON Schd.NameID = UN.NameID JOIN Sites s ON s.SiteID = Schd.SiteID WHERE Schd.Schd_ID ='" + grdview2.Rows[e.NewSelectedIndex].Cells[6].Text + "'";           
            //DataTable dt = DBHelper.GetDataTable(sqlquery);
           
            //for (int x = 0; x < dt.Rows.Count; x++)
            //{
            //    if (dt.Rows[x]["Schd_ID"].ToString() == grdview2.Rows[e.NewSelectedIndex].Cells[6].Text)
            //    {
            //        txtFname.Text = dt.Rows[x]["Name"].ToString();
            //        txtVistingDate.Text = DateTime.Parse(dt.Rows[x]["VisitDate"].ToString()).ToShortDateString();
            //        //txtSiteID.Text = dt.Rows[x]["SiteID"].ToString();
            //        txtSiteName.Text = dt.Rows[x]["Sites"].ToString();

            //        txtSiteAddress.Text = dt.Rows[x]["Site_Address"].ToString() + Environment.NewLine + dt.Rows[x]["City"].ToString()
            //            + ", " + dt.Rows[x]["State"].ToString();
            //    }
            //}
            //MultiView1.ActiveViewIndex = 2;
        }
开发者ID:saltmktg,项目名称:isbepi.erikson.edu,代码行数:25,代码来源:Manage.aspx.cs


示例2: GridView1_IndexChange

 protected void GridView1_IndexChange(object sender, GridViewSelectEventArgs e)
 {
     string _prodID = GridView1.DataKeys[e.NewSelectedIndex].Value.ToString();
     int prodID = int.Parse(_prodID);
     CartList.getCart().set(prodID);
     Response.Redirect("Cart.aspx");
 }
开发者ID:matthall765,项目名称:ConnXon,代码行数:7,代码来源:Product.aspx.cs


示例3: GV_Result_SelectedIndexChanging

 protected void GV_Result_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     int newindex = e.NewSelectedIndex;
     string ID = GV_Result.Rows[newindex].Cells[1].Text;
     Response.Redirect("~/Views/AccountMaster/ChartofAccount.aspx?CAID=" + ID);
     
 }
开发者ID:pareshf,项目名称:testthailand,代码行数:7,代码来源:ChartsOfAccountSearch.aspx.cs


示例4: ApprovedGridView_SelectedIndexChanging

 protected void ApprovedGridView_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     int r = e.NewSelectedIndex;
     Label l = (Label)ApprovedGridView.Rows[r].FindControl("Label2");
     headerLabel.Text = "Application Details";
     approveLabel.Text = l.Text;
 }
开发者ID:pavel99,项目名称:BARD-s-PHYSICAL-FACILITY-MANAGEMENT,代码行数:7,代码来源:Approved.aspx.cs


示例5: gvPendingApprovals_SelectedIndexChanging

 protected void gvPendingApprovals_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     gvPendingApprovals.SelectedIndex = Convert.ToInt32(e.NewSelectedIndex);
     Session["EvaluationId"] = Convert.ToInt32(gvPendingApprovals.SelectedDataKey.Values["Id"]);
     Session["UserId"] = gvPendingApprovals.SelectedDataKey.Values["UserId"];
     Response.Redirect("~/Employee/vPerformanceEvaluation.aspx");
 }
开发者ID:ismaeljaycarpio,项目名称:vs2013,代码行数:7,代码来源:PendingApprovals.aspx.cs


示例6: GV_Result_SelectedIndexChanging

        protected void GV_Result_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
        {
            try
            {
                int newindex = e.NewSelectedIndex;
                string invoice_id = GV_Result.Rows[newindex].Cells[1].Text;
                Session["Invoice_ID"] = invoice_id;
                Response.ContentType = "Application/pdf";
                Response.AppendHeader("Content-Disposition", "attachment; filename=" + Session["Invoice_ID"].ToString() + "/Invoice.pdf");


                Response.TransmitFile(Server.MapPath("~/Views/FIT/Invoices/" + Session["Invoice_ID"].ToString() + "/Invoice.pdf"));

                Response.End();

            }
            catch
            {

            }
            finally
            {

            }
        }
开发者ID:pareshf,项目名称:testthailand,代码行数:25,代码来源:AgentAllInvoice.aspx.cs


示例7: GV_Result_SelectedIndexChanging

 protected void GV_Result_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     int newindex = e.NewSelectedIndex;
     string SightSeeingPriceListId = GV_SightSeeingPriceList.Rows[newindex].Cells[1].Text; /// Price list Primary key 
     int suppid = supplierid;
     Response.Redirect("~/Views/GITMaster/SightSeeingPriceListMaster.aspx?SightSeeingPriceListId=" + SightSeeingPriceListId + "&SUPPLIERID=" + suppid); //Price list Primary key         
 }
开发者ID:pareshf,项目名称:testthailand,代码行数:7,代码来源:SightSeeingPriceListDetails.aspx.cs


示例8: gvMOnthlySOI_SelectedIndexChanging

 protected void gvMOnthlySOI_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     if (!string.IsNullOrEmpty(txtSearch.Text))
     {
         MonthlySOIManager.SearchMonthlySOI(SqlDataSourceMonthlySOI, txtSearch.Text);
     }
 }
开发者ID:DennisPitallano,项目名称:IRMS-ACCOUNTING,代码行数:7,代码来源:MonthlySOIPanel.aspx.cs


示例9: gvLDAPQueryResults_SelectedIndexChanging

 protected void gvLDAPQueryResults_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     List<ADObject> proposedADObjects = (List<ADObject>)this.Session["proposedADObjects"];
     string sid = this.gvLDAPQueryResults.Rows[e.NewSelectedIndex].Cells[5].Text;
     foreach (ADObject ado in proposedADObjects)
     {
         if (ado.Sid == sid)
         {
             this.adoToResolve.Name = ado.Name;
             if (String.IsNullOrEmpty(ado.Name))
             {
                 this.adoToResolve.Name = sid;
             }
             this.adoToResolve.ClassName = ado.ClassName;
             this.adoToResolve.ADSPath = ado.ADSPath;
             this.adoToResolve.UPN = ado.UPN;
             this.adoToResolve.state = ADObjectState.Resolved;
             break;
         }
     }
     bool allResolved = true;
     foreach (ADObject ado in this.selectedAdObjects)
     {
         if (ado.state != ADObjectState.Resolved)
         {
             allResolved = false;
         }
     }
     this.callBackToTheOpener(allResolved);
     this.closeWindow(true);
 }
开发者ID:JamesTryand,项目名称:NetSqlAzMan,代码行数:31,代码来源:dlgActiveDirectoryObjectPickUp.aspx.cs


示例10: GV_Result_SelectedIndexChanging

 protected void GV_Result_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     int newindex = e.NewSelectedIndex;
     string TransferPriceListId = GV_TransferPackagePriceList.Rows[newindex].Cells[1].Text; /// Price list Primary key 
     int suppid = supplierid;
     Response.Redirect("~/Views/GITMaster/TransportPackgePriceListGIT.aspx?TransferPriceListId=" + TransferPriceListId + "&SUPPLIERID=" + suppid); //Price list Primary key         
 }
开发者ID:pareshf,项目名称:testthailand,代码行数:7,代码来源:TransportPackagePriceListDetails.aspx.cs


示例11: GV_HotelPriceList_SelectedIndexChanging

        protected void GV_HotelPriceList_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
        {

            int newindex = e.NewSelectedIndex;

            string hotelpriceid = GV_HotelPriceList.Rows[newindex].Cells[7].Text;
            Response.Redirect("~/Views/GITMaster/HotelPriceListGIT.aspx?ID=" + hotelpriceid);
        }
开发者ID:pareshf,项目名称:testthailand,代码行数:8,代码来源:SearchHotelPriceListGit.aspx.cs


示例12: grid_SelectedIndexChanging

        protected void grid_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
        {
            int i = e.NewSelectedIndex;
            GridViewRow row = grid.Rows[i];
            string artId = row.Cells[3].Text;

            Response.Redirect("~/Mantenimiento/Inciso.aspx?id=" + artId);
        }
开发者ID:kingtrocko,项目名称:EticaUNITEC,代码行数:8,代码来源:Articulo.aspx.cs


示例13: viewGridView_SelectedIndexChanging

 protected void viewGridView_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     int r = e.NewSelectedIndex;
     Label id = (Label)viewGridView.Rows[r].FindControl("Label8");
     remTextBox1.Text = aManagerBal.GetRemarks(id.Text);
     remarksMsgLabel.Visible = true;
     remTextBox1.Visible = true;
 }
开发者ID:nmizan,项目名称:ComplainManagementSystem,代码行数:8,代码来源:ViewComplainForm.aspx.cs


示例14: appGridView_SelectedIndexChanging

        protected void appGridView_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
        {
            //detailLabel.Visible = true;
            //int r = e.NewSelectedIndex;
            //Label l = (Label)AllAppGridView.Rows[r].FindControl("Label4");

            //detailLabel.Text = l.Text;
        }
开发者ID:pavel99,项目名称:BARD-s-PHYSICAL-FACILITY-MANAGEMENT,代码行数:8,代码来源:AllApplication.aspx.cs


示例15: grvMails_SelectedIndexChanging

        protected void grvMails_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
        {
            string accountId = Request.QueryString["AccountId"];
            string userId = Request.QueryString["UserId"];

            this.grvMails.SelectedIndex = e.NewSelectedIndex;
            Response.Redirect(string.Format("MessageDetail.aspx?UserId={0}&AccountId={1}&MessageId={2}", userId, accountId, (string)this.grvMails.SelectedDataKey.Value.ToString()));
        }
开发者ID:jomamorales,项目名称:IMAP,代码行数:8,代码来源:Mailbox.aspx.cs


示例16: gvCustomers_SelectedIndexChanging

 protected void gvCustomers_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     if (!string.IsNullOrEmpty(txtSearchCustomer.Text))
     {
         DRManager.SeachCustomers(SqlDataSourceCustomers, txtSearchCustomer.Text);
     }
     btnBrowseCustomer_ModalPopupExtender.Show();
 }
开发者ID:DennisPitallano,项目名称:IRMS-MARKETING,代码行数:8,代码来源:CustomerDeliveryIndex.aspx.cs


示例17: GV_Result_SelectedIndexChanging

 protected void GV_Result_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     int newindex = e.NewSelectedIndex;
     
     string quoteid = GV_Result.Rows[newindex].Cells[1].Text;
     string tourid = GV_Result.Rows[newindex].Cells[7].Text;
     
 }
开发者ID:pareshf,项目名称:testthailand,代码行数:8,代码来源:AgentInvoices.aspx.cs


示例18: RejectGridView_SelectedIndexChanging

 //protected void RejectGridView_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 //{
 //    string detail = detailTextBox.Text;
 //    int r = e.NewSelectedIndex;
 //    Label l = (Label)RejectGridView.Rows[r].FindControl("Label1");
 //}
 protected void RejectGridView_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     detailsLabel.Visible = true;
     int r = e.NewSelectedIndex;
     Label l = (Label)RejectGridView.Rows[r].FindControl("Label3");
     headerLabelLabel.Text = "Application Details";
     detailsLabel.Text = l.Text;
 }
开发者ID:pavel99,项目名称:BARD-s-PHYSICAL-FACILITY-MANAGEMENT,代码行数:14,代码来源:Reject.aspx.cs


示例19: grvCategory_SelectedIndexChanging

 protected void grvCategory_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     int categoryID = Convert.ToInt32(grvCategory.DataKeys[e.NewSelectedIndex].Values["iCategoryID"]);
     btnOK.CommandName = "Edit";
     btnOK.CommandArgument = categoryID.ToString();
     napForm(categoryID);
     //
 }
开发者ID:vantrung87hvt,项目名称:vietgap-thuysan,代码行数:8,代码来源:CategoryManager.ascx.cs


示例20: GV_Result_SelectedIndexChanging

        protected void GV_Result_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
        {

            int newindex = e.NewSelectedIndex;

            string invoice = GV_Result.Rows[newindex].Cells[3].Text;            
            Response.Redirect("~/Views/Account/TransferServiceVoucher.aspx?IN=" + invoice);
        }
开发者ID:pareshf,项目名称:testthailand,代码行数:8,代码来源:SearchTransferService.aspx.cs



注:本文中的System.Web.UI.WebControls.GridViewSelectEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# WebControls.GridViewSortEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# WebControls.GridViewRowEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap