Results 1 to 2 of 2

Thread: Radio Buttons with DGV double click values

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2012
    Posts
    119

    Radio Buttons with DGV double click values

    I have two Identical twins forms (for editing and updating purposes),when I double click on the DGV row it gives me the value of the row in another form.
    Now I have three radio buttons on form number 1
    1.Wages
    2.Salary
    3.Director
    I want the values to be transfers to the three radio buttons on the form number two ,if in form number 1 radio button 1 was clicked then in the form number two the number 1 radio button should be clicked so that later the values can be changed or updated,How can I do that ?
    Code:
    frm.Edit_Conv_amt_txt.Text = DGV1.CurrentRow.Cells(36).Value.ToString
    here is the example how I transfer the values from double click the dgv to another form .
    now how do I do it with radio button values .

    Values are in the Category Column in table,if I click on the one of the radio buttons the value wages,salary or director ,values are stored into Category column.

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Radio Buttons with DGV double click values

    If the forms are literally identical you should be able to use the index from the controls collection of whatever container you have the radio buttons in. If you don't currently have a separate container (panel, groupbox etc.) for the radio buttons then I suggest that you add one for this reason. Alternatively you could add the buttons to a list and use the index from that.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

Posting Permissions

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



Click Here to Expand Forum to Full Width