本文整理汇总了C#中System.Web.UI.WebControls.GridViewSelectEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# GridViewSelectEventArgs类的具体用法?C# GridViewSelectEventArgs怎么用?C# GridViewSelectEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GridViewSelectEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了GridViewSelectEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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");
}
示例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);
}
示例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;
}
示例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");
}
示例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
{
}
}
示例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
}
示例8: gvMOnthlySOI_SelectedIndexChanging
protected void gvMOnthlySOI_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
if (!string.IsNullOrEmpty(txtSearch.Text))
{
MonthlySOIManager.SearchMonthlySOI(SqlDataSourceMonthlySOI, txtSearch.Text);
}
}
示例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);
}
示例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
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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()));
}