Radio Button Group in a Datagrid

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

  1. #1

    Default Radio Button Group in a Datagrid

    I have a Datagrid that has multiple rows with a Radio Group template item in it. I need to find out if at least one item in the Radio button group of each row has been selected and if selected, find out which one was selected and if not, throw a validation message (e.g. "You must select a value"). Anyone have some code samples as to how to approach this?

    P
    Paul D. Fox Guest

  2. Similar Questions and Discussions

    1. validating radio group button
      Hello everybody, I want to validate radio group button in dream weaver...How can I do that?
    2. how to add single select radio button in datagrid... URGENT
      Hi All, I am adding a radiobutton in a datagrid. Now if I want to select a single radio button I am unable to achieve this. I have tried both...
    3. Binding a Radio Button Group to a Data Holder
      I'm fairly new to components and recently I had some trouble binding a radio button group to a data holder and saw that other had as well. This may...
    4. How to put a full radio button list in each row of datagrid?
      Hello, I have a datagrid where I display images. I want visitors to be able to rate the images on a scale of 1 to 10 by clicking a radio button,...
    5. Radio button group
      I have a simple html page with a radio button group on it. I am submitting that page into an asp page. How do I know what button the user has...
  3. #2

    Default Re: Radio Button Group in a Datagrid

    Do you use RadioButtonList within a template? If yes, you could apply
    RequiredFieldValidator to it. This way validating would apply to every row's
    set of radio buttons.

    Otherwise you'd need a custom solution (Customvalidator etc) or 3rd party
    product such as Peter Blum's Professional Validation And More.

    --
    Teemu Keiski
    ASP.NET MVP, AspInsider
    Finland, EU
    [url]http://blogs.aspadvice.com/joteke[/url]



    "Paul D. Fox" <pdfox99@rcn.com> wrote in message
    news:ehY9zcQmFHA.1464@TK2MSFTNGP14.phx.gbl...
    I have a Datagrid that has multiple rows with a Radio Group template item in
    it. I need to find out if at least one item in the Radio button group of
    each row has been selected and if selected, find out which one was selected
    and if not, throw a validation message (e.g. "You must select a value").
    Anyone have some code samples as to how to approach this?

    P


    Teemu Keiski 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