Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
375
Add New Row style for XamDataGrid
posted

We are working to develop a custom Add New Row for XamDataGrid, The image below is the design we want to achieve. However I will explain how we want to do it as well. The requirement is to show a button which is always visible with the text "Add Xyz", in case grid is empty it will be like a first row otherwise it will appear apparently as the last row in the grid. There are two possible solution we figured out

1) Modify the grid scrollviewer. When the user reach to the end of grid a datatrigger will be fired and the controltemplate for the scrollviewer will be show. This solution has its own limitations. If the grid height is less than min-width this behavior will fail. So this solution is out of question

2) Use Summary record presenter for this purpose. The issue with this technique is that we won't be able to show summaries if we override the behavior and styling of summaryrecordpresenter.

 Is there any good solution for this problem? Your help will be appreciated. or we have to stick with either of the two mentioned

 Design for Grid Add New Row

Parents Reply Children