if I click on Save these all fields should disappear only grid will be display when i edit the grid should be disappear
how to do it pls help me

if I click on Save these all fields should disappear only grid will be display when i edit the grid should be disappear
how to do it pls help me

Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manikandan RPosted Feb 17, 2023, 12:07 PM
Hello,
You can also Use
Panel to Change the Visible property to Hide an Unhide The Set of Controls ,
MultiView Control,
Tab - Add 2 Tabs inthe form and One For Registration Form and another one for grid
Diptiranjan SutarPosted Feb 17, 2023, 5:54 AM
Hi Jaya,
You can show hide registration form panel and grid panel based on Save and Edit.
Keep Registration Form into a single panel and grid into a single panel.
Thanks
Diptiranjan
Naimish MakwanaPosted Feb 17, 2023, 3:57 AM
Hello Jaya,
you can also do as below.
1. For Regstration form - Take on panel like: panelRegistrationForm
2. For gridview you can use its Visible property.
Then on click of buttons you can show and hide the panels. Example:
For Grid Click
Thanks
Naimish Makwana
Tuhin PaulPosted Feb 16, 2023, 7:10 PM
Hi Jaya,
As far as I can understand from the image that you have shared and what you have written. To achieve this, you can add two panels to your page -
1. for the registration form and
2. for the grid view.
Initially, the registration form panel will be visible and the grid view panel will be hidden. When the user clicks the "Save" button, you can hide the registration form panel and show the grid view panel.
Similarly, when the user clicks the "Edit" button in the grid view, you can hide the grid view panel and show the registration form panel.
Here is the modified code for the Button1_Click event handler:
And here is the modified code for the GridView1_RowEditing event handler:..
In the modified code, I have used Panel1 for the registration form panel and Panel2 for the grid view panel. The Visible property of each panel is set to true or false to show or hide the panel, respectively.
Bro let me know if that worked for you.