What is the best structure to use to create a table editor in wpf?

vitaminchik 446 Reputation points

Good day! I am new to programming. I am building an application using WPF. I need to create a table with automatically numbered rows on an A4 sheet. The table must communicate with the database, providing information in the form of a drop-down list. It should also be possible to expand the table by analogy with tables in Microsoft Word. The next pages are to be printed. What technology should I use? On the documentation site, I found a lot of information on this topic, but I don’t know what would be better suited. I will be grateful for the answer.))

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,700 questions
{count} votes

Accepted answer
  1. Hui Liu-MSFT 47,101 Reputation points Microsoft Vendor

    Hi, @vitaminchik . If you have a lot of data, you could display a lot of data in a DataGrid, and display part of the data by sliding the scroll bar.
    For more information you can check the documentation How to: Add Row Details to a DataGrid Control


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. marcello7n 1 Reputation point

    In a project I want to create a screen where I want to edit a table in sql server. I have created a WPF project and I am using a DataGrid to manipulate a table. However, the client expects the same editing as in Control Studio (ie to go into editing mode). I tried setting begedit on the current cell which changed and tried different events. https://bit.ly/3DXwuoT However, to deal with problems such as sometimes there are two cells in editing mode and sometimes the new owner of the space does not come. Also much more.

    I haven't seen any perfect examples of insert, update, delete actions with input in edit mode.

    Can some body help me with examples of raw functions and getting into edit mode.