If I am not wrong, you want to load the tables on GridView according to the radio button click.
For Example -
If you have two radio buttons like -
. Students
. Teachers.
You want to say,
- if you select radio button "Students", then "Students" table gets loaded in
GridView and you can be able to edit, delete and update.
- if you select radio button "Teachers", then "Teachers" table gets loaded in
GridView and you can be able to edit, delete and update.
To achieve this
- Include the radio buttons inside one radio button list.
- Then you have to bind the GridView in a function called by the event "OnSelectedIndexChanged" of Radio Button List, which is called when we select any value of Radio button List.
Now you need to check the selected Item of the radio button list and bind the required table accordingly.
Refer this
blog[
^] to know thw usage.