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
  1. Home
  2. General Programming
  3. C#
  4. gridview row select [modified]

gridview row select [modified]

Scheduled Pinned Locked Moved C#
css
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sunil Wise
    wrote on last edited by
    #1

    i have one button and one gridview in that i have filled data using public void GetData() { SqlConnection con = new SqlConnection(constr); string cmd = "select a.errname as ErrorName, m.errortype as ErrorType, a.errpointsdeducted as PointsDeduction, convert(varchar,a.createddate,104) as CreatedDate from auditerrors a,auditerrormaster m where a.errtypeid=m.internalid order by m.errortype"; SqlDataAdapter da = new SqlDataAdapter(cmd,con); DataSet ds = new DataSet(); DataTable dt = new DataTable(); da.Fill(ds, "auditerrors"); dt = ds.Tables["auditerrors"]; gvAuditErrors.DataSource=ds.Tables[0]; gvAuditErrors.DataBind();} in the same project i have another page with one text box in it. i want to select a row in the grid view and after selecting a row in grid view when i click on the button i want to transfer the createddate of that particular row in to the textbox of the other page if anybody got the solution plz do let me know tasks: selecting a row on double clicking the row transfering the content from first page to the other regards sunil -- modified at 5:07 Thursday 22nd November, 2007

    S 1 Reply Last reply
    0
    • S Sunil Wise

      i have one button and one gridview in that i have filled data using public void GetData() { SqlConnection con = new SqlConnection(constr); string cmd = "select a.errname as ErrorName, m.errortype as ErrorType, a.errpointsdeducted as PointsDeduction, convert(varchar,a.createddate,104) as CreatedDate from auditerrors a,auditerrormaster m where a.errtypeid=m.internalid order by m.errortype"; SqlDataAdapter da = new SqlDataAdapter(cmd,con); DataSet ds = new DataSet(); DataTable dt = new DataTable(); da.Fill(ds, "auditerrors"); dt = ds.Tables["auditerrors"]; gvAuditErrors.DataSource=ds.Tables[0]; gvAuditErrors.DataBind();} in the same project i have another page with one text box in it. i want to select a row in the grid view and after selecting a row in grid view when i click on the button i want to transfer the createddate of that particular row in to the textbox of the other page if anybody got the solution plz do let me know tasks: selecting a row on double clicking the row transfering the content from first page to the other regards sunil -- modified at 5:07 Thursday 22nd November, 2007

      S Offline
      S Offline
      Sunil Wise
      wrote on last edited by
      #2

      please anybody send me some solution

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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