Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
J

jahabardeen

@jahabardeen
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to enable a check box in a gridview
    J jahabardeen

    I have a gridview that has an imagebutton column and a check box column.During GridView1_RowDataBound event i disable the checkbox column.Later when i click the image button i display a PDF document in a seperate window using a method named "exportgridview" and try to enable the corresponding checkbox.The problem is when i click the imagebutton the PDF is shown but the checkbox which is in the same row as the clicked imagebutton doesn't get enabled.I will show u the code in the imagebutton click event. protected void ImgBtnPDF_Click(object sender, ImageClickEventArgs e) { ImageButton ib = (ImageButton) sender; TableCell tablecell = (TableCell)ib.Parent; GridViewRow row = (GridViewRow)tablecell.Parent; CheckBox CBox = (CheckBox) row.FindControl("CheckBox2"); CBox.Enabled = true; Session["FamilyKey"] = row.Cells[1].Text; Session["StudentKey"] = row.Cells[2].Text; ExportGridView(); // this method shows the PDF in a seperate window }

    ASP.NET help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups