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. Web Development
  3. ASP.NET
  4. Problem in GridView

Problem in GridView

Scheduled Pinned Locked Moved ASP.NET
csharpdatabasehelpquestionannouncement
3 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Dear Friends, I have one GridView Control in my .aspx page with C#. I have last field as Status field which is boolean and is bound as checkbox control. Could you please show how can I se wether the user has checked it or uncheked it according to that I want to change the status of all customers record. if the checkbox is checked means the status is trus and i want update his status in the database through gridcontrol. I want to check all the record at one time. Even if possible I would like to give "Select all records" and "Deselect all Records" option also. Your quick response will be highly appreciated. Thanks and Best Regards Murtuza Patel;

    T I 2 Replies Last reply
    0
    • L Lost User

      Dear Friends, I have one GridView Control in my .aspx page with C#. I have last field as Status field which is boolean and is bound as checkbox control. Could you please show how can I se wether the user has checked it or uncheked it according to that I want to change the status of all customers record. if the checkbox is checked means the status is trus and i want update his status in the database through gridcontrol. I want to check all the record at one time. Even if possible I would like to give "Select all records" and "Deselect all Records" option also. Your quick response will be highly appreciated. Thanks and Best Regards Murtuza Patel;

      I Offline
      I Offline
      immori
      wrote on last edited by
      #2

      check these : http://www.codeproject.com/aspnet/datagridcheckboxcol.asp[^] http://www.codeproject.com/aspnet/Multi-select_Dataagrid.asp[^]

      1 Reply Last reply
      0
      • L Lost User

        Dear Friends, I have one GridView Control in my .aspx page with C#. I have last field as Status field which is boolean and is bound as checkbox control. Could you please show how can I se wether the user has checked it or uncheked it according to that I want to change the status of all customers record. if the checkbox is checked means the status is trus and i want update his status in the database through gridcontrol. I want to check all the record at one time. Even if possible I would like to give "Select all records" and "Deselect all Records" option also. Your quick response will be highly appreciated. Thanks and Best Regards Murtuza Patel;

        T Offline
        T Offline
        ToddHileHoffer
        wrote on last edited by
        #3

        //To select all checkboxes foreach (GridViewRow gr in GridView1.Rows) { CheckBox cb = (CheckBox)gr.FindControl("CheckBox1"); cb.Checked = true; }


        how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06

        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