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. Asking about DataGrid Multi-Select???

Asking about DataGrid Multi-Select???

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netcomtutorialquestion
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.
  • T Offline
    T Offline
    Tran Quoc Thang
    wrote on last edited by
    #1

    Hi everybody, I've followed a tutorial in Codeproject.com to make an asp.net page. This page has a datagrid with a checkbox for each row. Then I can select the checkbox the select the row. But the page doesn't work. I don't know the reason why. This code is placed in the button_onclick event Dim drItem as DataGridItem For Each drItem in DataGrid1.Items Dim chk As CheckBox = CType(drItem.Cells(0).Controls(1), CheckBox) If chk.Checked then Response.Write (drItem.Cells(1).Text) End If Next

    M S 2 Replies Last reply
    0
    • T Tran Quoc Thang

      Hi everybody, I've followed a tutorial in Codeproject.com to make an asp.net page. This page has a datagrid with a checkbox for each row. Then I can select the checkbox the select the row. But the page doesn't work. I don't know the reason why. This code is placed in the button_onclick event Dim drItem as DataGridItem For Each drItem in DataGrid1.Items Dim chk As CheckBox = CType(drItem.Cells(0).Controls(1), CheckBox) If chk.Checked then Response.Write (drItem.Cells(1).Text) End If Next

      M Offline
      M Offline
      MorningZ
      wrote on last edited by
      #2

      got more to go on than just "it doesn't work"? ============================ If you make it idiot-proof, they'll make a better idiot

      1 Reply Last reply
      0
      • T Tran Quoc Thang

        Hi everybody, I've followed a tutorial in Codeproject.com to make an asp.net page. This page has a datagrid with a checkbox for each row. Then I can select the checkbox the select the row. But the page doesn't work. I don't know the reason why. This code is placed in the button_onclick event Dim drItem as DataGridItem For Each drItem in DataGrid1.Items Dim chk As CheckBox = CType(drItem.Cells(0).Controls(1), CheckBox) If chk.Checked then Response.Write (drItem.Cells(1).Text) End If Next

        S Offline
        S Offline
        Sarvesvara BVKS Dasa
        wrote on last edited by
        #3

        Tran Quoc Thang wrote: I've followed a tutorial in Codeproject.com to make an asp.net page What tutorial is that. Ask the question there.... and try for answer from the author of that article.. Else post more information about your problem There is nothing new under the sun,
        But there are lots of old things we don't know.

        - Ambrose Bierce

        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