Hi
I am having one winform grid with Master details view. When I add new master row and save it and then add detail row, it works as expected But when I try to add new master row and detail row at same time, detail row gets disappear after save. I have to expand and collapse master row to see the detail row in grid.
Hello Chetan,
Before we suggest any solution to you, would you please clarify how you try to populate detail rows. Note that a detail view will be created only when you open its master row.
I look forward to your response.
Hi,
I am using DataSet for this purpose. I have 2 table in dataset and parent child relationship on tables. I am able to see master details view in grid and grid is editable. When I try to insert Master and details at same time, after save details row get invisible and it gets visible after collapse and expansion of master row. Data gets saved in database but this change is not reflection in grid unless master row collapse and expand.
Hi,
Showing a new detail row should not depend on saving changes to your data base since this operation does not influence the grid. Would you please clarify if you fetch data from your data base again after saving the changes and re-set the grid's data source?
In any case, I have created a small project with two master and detail tables. If I add new master and detail rows at the same time, everything operates as expected. Please modify my project to show how to reproduce the shortcoming.
I look forward to your response.
Hi,
Please see attached project. When I modified ID on click of another button child row disappears. PLease add one row and then click on new button added by me. I am modifying ID column here. In my project case as well, ID changes after data saved and return by database.
Hope its clear no