In my module there are 2 grids, first one is populated on the search button click.
in the grid the first column was select button, on click of that button popup window will be displayed with yes or no option.
If it is Yes then the another datasource will be binded in the 2nd grid.
If the datasource have records on click of AddNewRecord button, it display the edit form with insert and cancel buttons.
Issue:
On click of AddNewRecord option the 2nd grid is not visible when there is no datasource to bind, but it is working fine if the datasource have records. the 2nd grid will be disapper on click of any button in the grid.
Resolution Required:
Even though the data source has empty records, on click of AddNewRecord the edit form should be visible and we need to add the records in the Edit form and rebind the data in the grid.
Can u please give the solution for my issue also if you have code sample please share with me.
Thanks