I have a gridview which contains columns vacancy id and vacancy title and a few image buttons.
When the user clicks on button show criteria, another gridview should open inside existing gridview.
This inner gridview should show criteria for that vacancy.
Again, when user clicks on the same button, it should hide the child gridview.
I tried this by adding child gridview in item template part of the template field of the parent gridview, but it shows the inner gridview in another column.
However, I want to open child grid below the row whose button is clicked.
How is this accomplished?
hi check this example : http://tugberkugurlu.com/archive/parent-child-view-in-a-single-table-with-gridview-control-on-asp-net-web-forms
i think for your issue you need to play with the width of the itemtemplate column. that may resolve your issue easily.
Use Ajax modal popup inside GridView and it will open on button click.
Related
I am working on a project in asp.net. I have a gridview that contains employee's names, designation and department. when i click on the edit button on any row gridview gets hide and the second div is visible that contains different buttons like address, education, trainings etc.Each button shows the specific panel to add or edit the data. But the issue is when i click on any button, the control goes back to the gridview rather than showing the appropriate panel it shows the gridview which was hide. I am using OnEditCommand property of the gridview to hide the gridview and show the other div.How to resolve this issue?
asp.net gridvew
divs to show
I am developing a web application where I am having one grid view control and one repeater control.When I click on the link button in any row of grid view,then data in repeater control get visible.and in repeater control I am having one delete request link button inside a repeater control.when i will click on this button that particular row in grid view should get deleted.So,how I can do this?
Please suggest me any solution for this.
Thanks in advance.
I want to edit users who are from a grid view. Once I select the user (clicking on a row in a grid), I want to populate the selected user details into an edit pane(form with user fields) above the grid. Is this possible in asp.net.
Yes!
Check this:
GridView-DetailsView (Master/Detail) Code Project
Regards
Sure that is possible, you should use
gridview_SelectedIndexChanged event to get the last selected row, thereby you can access the last selected row using SelectedRow property of your datagridview so you can populate your form controls with the datagridview.SelectedRow.Cells[index].Text
In order to make each row clickable go in design view on your aspx page and click the datagridview right top corner arrow and click Edit Columns, from Available fields click on + sign on CommandField and chose Select, then click add and you got select link on every datagridview row.
Hope this help.
On click of the selected row from the gridview I want to display the formview. It is working properly with the help of commandfield whereas i want it to be displayed when i select the row.
Also I want when the formview to be displayed in a new window. I have used update panel for both the gridview and the formview but still when i click on the select button the gridview and the formview are displayed on the same page.
The code for reference
http://pastebin.com/qnQnAEUy
Thanks
Solved it with the help of
http://www.geekzilla.co.uk/view9FC28EE6-ACB0-4F51-BFE4-38B0B10134D5.htm.
Thanks all
I want my GridView and a FormView (or DetailsView) to work together. When an item in the GridView is selected, I want to open a popup window and display more details about the selected item.
Since I am a beginner, I'd appreciate specific info such as: handle this event in GridView, do this to get the id of GV item selected, make this call to open a new window, in this window make this call to get info associated with the id and display it.
Thanks.
this might help you: Master-Detail with the GridView, DetailsView and ModalPopup Controls