Radio Button

Results 1 to 2 of 2

Thread: Radio Button

  1. #1
    Join Date
    Dec 1969

    Default Radio Button

    How do I add a radio button to a databrid so when the user clicks the radio button it selects that row and changes the texts color. I figured out how to do it using the select command but I want to do it using the radio button.<BR><BR>Thanks!<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Radio Button

    You can use the OnCheckedChanged and the autoPost back property on the radio button to call a function and then access that row in the function with something like<BR><BR>&#060;asp:radioButton OnCheckedChanged="radioClick" autoPostBack="true" runat="server" /&#062;<BR><BR>sub radioClick(sender as object, e as eventArgs)<BR> Dim dgiCurrent as dataGridItem = sender.Parent<BR><BR> &#039;And you can find other controls in the row with<BR> Dim myColorLiteral as label = sender.Parent.FindControl("myColorLiteral")<BR>end sub

Posting Permissions

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