Trouble w/ GridView Radio buttons

Discussion in 'ASP .Net Web Controls' started by Krish, Jan 13, 2006.

  1. Krish

    Krish Guest

    Hello Gurus,

    I have GridView control on web page which has couple of radio button
    controls as one group. On editing a particular row in grid, i have to
    validate based on user selection on radio button i have to validate another
    column data in the grid. Pl. help me with code snippets. Thank you.

    <asp:TemplateField HeaderText="Code Translate">

    <ItemTemplate>

    <asp:RadioButton GroupName="rdTrans" id="rdTranslateP" runat="server"
    Text='P' checked='<%# GetCheckP((string)DataBinder.Eval(Container.DataItem,
    "in_translate")) %>' ToolTip="Permanant" Enabled="False"/>

    <asp:RadioButton GroupName="rdTrans" id="rdTranslateT" runat="server"
    Text='T' checked='<%# GetCheckT((string)DataBinder.Eval(Container.DataItem,
    "in_translate")) %>' ToolTip="Temporary" Enabled="False"/>

    </ItemTemplate>

    <EditItemTemplate>

    <asp:RadioButton GroupName="rdTransE" id="rdTranslatePE" runat="server"
    Text='P' checked='<%# GetCheckP((string)DataBinder.Eval(Container.DataItem,
    "in_translate")) %>' ToolTip="Permanant"/>

    <asp:RadioButton GroupName="rdTransE" id="rdTranslateTE" runat="server"
    Text='T' checked='<%# GetCheckT((string)DataBinder.Eval(Container.DataItem,
    "in_translate")) %>' ToolTip="Temporary"/>

    </EditItemTemplate>
    Krish, Jan 13, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Krish

    Trouble w/ GridView Radio buttons

    Krish, Jan 13, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    5,836
    Krish
    Jan 13, 2006
  2. Scott D Johnson
    Replies:
    1
    Views:
    1,064
    Scott D Johnson
    Sep 27, 2006
  3. Jan C. Faerber
    Replies:
    0
    Views:
    618
    Jan C. Faerber
    Jun 30, 2009
  4. Dr. Leff
    Replies:
    3
    Views:
    290
    David Mark
    Oct 15, 2007
  5. Dr. Leff
    Replies:
    3
    Views:
    225
    David Mark
    Oct 15, 2007
Loading...

Share This Page