Y
Y
youngpr2020-10-07 08:50:00
WPF
youngpr, 2020-10-07 08:50:00

How to make import and export function in DataGrid?

I wrote a guide, the idea is this, if some unforeseen situation happens, so that I can restore data from the table as a backup, specifying the path to the file that contains all the contacts and instantly fill in all the tables.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ackbar, 2020-10-07
@Ackbar

can be stored in xml/json files, serialization from those files will be fairly easy.
and write in Google "list to xml" or "datatable to xml", depending on what you use,
these files can be connected directly to the project, they will be published with it
if there are more than one table, then you can store your tables in tools designed for this , such as sqlite database or any other.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question