How to detect selected items?

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default How to detect selected items?

    I have a datagrid with a template column in its template item I put a check
    box.

    How to determine which check boxes are selected when a button is clicked.

    Notice: these check boxes are separate and are not check box list items.

    Thanks alot


    Bishoy George Guest

  2. Similar Questions and Discussions

    1. Remove multiple selected items listbox
      How, using asp.net (vb.net), can I remove multiple selected items from a listbox. Everything I try does not seem to work. Thanks in advance.
    2. Populating listbox with selected items
      Hi All, I've got a form on which a customer's record is edited/updated. There is a listbox that should show a full list of options with only the...
    3. Datagrid selected items with checkbox
      I read some articles about the way to find the rows having his checkbox checked. Here is the code Private Sub btnModifier_Click(ByVal sender...
    4. Retaining selected items after pagechange or sort
      Hi, I've created a datagrid which has 4 columns, a 'checkbox' column, ID, Name and and image. My HTML looks like... <asp:DataGrid...
    5. Loop through the listbox to read selected items
      Hi, I am trying to loop through the listbox and read the selected items from the list, within a CLICK event on an aspx page. The following is...
  3. #2

    Default Re: How to detect selected items?

    Use sender parameter of the CheckedChanged event handler. It is a reference
    on the checkbox that fired the event. From that reference, using Parent
    property, you can navigate up to the datagrid item should you need to.

    Eliyahu

    "Bishoy George" <bishoy@bishoy.com> wrote in message
    news:eVg9%23Df7FHA.4076@tk2msftngp13.phx.gbl...
    >I have a datagrid with a template column in its template item I put a check
    >box.
    >
    > How to determine which check boxes are selected when a button is clicked.
    >
    > Notice: these check boxes are separate and are not check box list items.
    >
    > Thanks alot
    >

    Eliyahu Goldin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139