Hello -
I am encountering an issue with a grid inside an EditForm for a parent grid that I cannot seem to correct.
When I choose to edit a row in the parent grid the form comes up and I am able to modify the fields placed directly on the form. On that same form is another grid that also has an edit form that needs to be completed. When I click to add/edit the child grid it simply flashes and the editform does not appear.
I tracked this down to code that I have in the PreRender event for the parent grid to change the editcolumn text from "Edit" to "View" depending on the users selection and then rebind the grid. This event fires when I click the add/edit in the child grid and prevents the form from appearing. If I remove the rebind from the prerender event for the parent the text for the editcolumn no longer changes and the child grid no longer shows any data but the editform does appear when add/edit is selected. Additionally, when I do click the add/edit button and the form comes up, all of the rows that should have been shown the first time also appear.
Is there a way to get around the rebind in prerender so that I can swap the text for the editcolumn?
How can I refresh the child grid to show the records when it is rendered and keep them showing?
Any assistance is greatly appreciated!
Thanks,
Shawn
I am encountering an issue with a grid inside an EditForm for a parent grid that I cannot seem to correct.
When I choose to edit a row in the parent grid the form comes up and I am able to modify the fields placed directly on the form. On that same form is another grid that also has an edit form that needs to be completed. When I click to add/edit the child grid it simply flashes and the editform does not appear.
I tracked this down to code that I have in the PreRender event for the parent grid to change the editcolumn text from "Edit" to "View" depending on the users selection and then rebind the grid. This event fires when I click the add/edit in the child grid and prevents the form from appearing. If I remove the rebind from the prerender event for the parent the text for the editcolumn no longer changes and the child grid no longer shows any data but the editform does appear when add/edit is selected. Additionally, when I do click the add/edit button and the form comes up, all of the rows that should have been shown the first time also appear.
Is there a way to get around the rebind in prerender so that I can swap the text for the editcolumn?
How can I refresh the child grid to show the records when it is rendered and keep them showing?
Any assistance is greatly appreciated!
Thanks,
Shawn