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.
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.